body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f5f9;
}

.loader {
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.candidate-item.active {
    background-color: #dbeafe;
    border-left-color: #3b82f6;
}

.candidate-item {
    transition: background-color 0.2s ease-in-out;
    border-left: 4px solid transparent;
}

.tool-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.back-button {
    background-color: transparent;
    border: none;
    color: #2563eb;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-bottom: 2rem;
}

.back-button:hover {
    color: #1d4ed8;
}

.progress-bar-container {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.5s ease-in-out;
    text-align: center;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Password Modal Styles */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.password-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    max-width: 400px;
    width: 90%;
}

.password-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 0.5rem;
}

.password-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-submit-btn {
    width: 100%;
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.password-submit-btn:hover {
    background-color: #2563eb;
}

.password-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

.animate-on-scroll {
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
    opacity: 0;
    transform: translateY(32px) scale(0.98);
}

.animate-on-scroll.opacity-100 {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.favorite-label span.bg-yellow-300 {
    background: linear-gradient(90deg,#fef08a,#fde047);
    color: #92400e;
    box-shadow: 0 1px 4px 0 #fde04755;
}

.favorite-label span.bg-gray-200 {
    background: #f3f4f6;
    color: #6b7280;
}

@media (max-width: 768px) {
    .tool-card {
        margin-bottom: 1.5rem;
    }
    .marquee-mobile-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        height: 2.5rem !important;
    }
    #motivasi-marquee {
        padding: 0 !important;
        margin: 0 !important;
        height: 2.5rem !important;
    }
    #motivasi-marquee-inner {
        padding: 0 !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 2.5rem !important;
        align-items: center !important;
    }
}

/* Ranking Tool Side-by-Side Layout */
#ranking-list {
    max-height: 600px;
    overflow-y: auto;
}

#detail-view {
    max-height: 600px;
    overflow-y: auto;
}

/* Responsive adjustments for ranking layout */
@media (max-width: 1024px) {
    .ranking-grid {
        grid-template-columns: 1fr;
    }
    
    #detail-view {
        margin-top: 1rem;
    }
    #notes-panel-content {
        display: block;
        transition: max-height 0.3s ease;
        overflow: hidden;
    }
    #notes-panel-content.collapsed {
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 0.5;
        pointer-events: none;
    }
}

/* Smooth scrolling for detail view */
#detail-view {
    scroll-behavior: smooth;
}

/* Active candidate item styling */
.candidate-item.active {
    background-color: #dbeafe !important;
    border-left-color: #3b82f6 !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Marquee padding for mobile */
@media (max-width: 768px) {
  .marquee-mobile-padding {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

/* Collapsible notes panel for mobile */
@media (max-width: 1024px) {
  #notes-panel-content {
    display: block;
    transition: max-height 0.3s ease;
    overflow: hidden;
  }
  #notes-panel-content.collapsed {
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.5;
    pointer-events: none;
  }
}

.tool-label {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25em 0.75em;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  letter-spacing: 0.05em;
}
.tool-label-hr {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #6366f1;
}
.tool-label-umum {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.disabled-generator {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.2);
  position: relative;
}
.tool-under-construction {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #f87171;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25em 0.75em;
  border-radius: 9999px;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  letter-spacing: 0.05em;
} 