/* ========================================
   Baza Install Manager - Global Styles
   ======================================== */

/* Base & Reset */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* ========================================
   Scrollbar Styles
   ======================================== */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ========================================
   Glass Morphism Effects
   ======================================== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-dark {
    background: rgba(15, 18, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ========================================
   Gradient Border
   ======================================== */
.gradient-border {
    position: relative;
}

.gradient-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 142, 145, 0.3), transparent);
}

/* ========================================
   Navigation Styles
   ======================================== */
.nav-link {
    position: relative;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5a9da1, #85bdc0);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #85bdc0;
}

/* ========================================
   Card Styles
   ======================================== */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* ========================================
   Planning Grid Styles
   ======================================== */
.project-cell {
    min-width: 90px;
}

/* ========================================
   Button Styles
   ======================================== */
.btn-primary {
    @apply flex items-center px-5 py-2.5 bg-gradient-to-r from-baza-500 to-baza-600 text-white rounded-xl text-sm font-semibold transition shadow-lg shadow-baza-500/25;
}

.btn-primary:hover {
    @apply from-baza-600 to-baza-700;
}

/* ========================================
   Form Styles
   ======================================== */
.input-search {
    @apply pl-10 pr-4 py-2.5 bg-white border border-gray-200 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-baza-500 shadow-sm;
}

.select-filter {
    @apply px-4 py-2.5 bg-white border border-gray-200 rounded-xl text-sm font-medium focus:outline-none focus:ring-2 focus:ring-baza-500 shadow-sm;
}

/* ========================================
   Table Styles
   ======================================== */
.table-header {
    @apply px-6 py-3 text-left text-xs font-semibold text-gray-500 uppercase tracking-wider;
}

.table-cell {
    @apply px-6 py-4;
}

/* ========================================
   Status Badge Styles
   ======================================== */
.badge {
    @apply px-3 py-1 text-xs font-semibold rounded-full;
}

.badge-success {
    @apply bg-emerald-100 text-emerald-700;
}

.badge-warning {
    @apply bg-amber-100 text-amber-700;
}

.badge-info {
    @apply bg-blue-100 text-blue-700;
}

.badge-danger {
    @apply bg-red-100 text-red-700;
}

.badge-neutral {
    @apply bg-gray-100 text-gray-600;
}

/* ========================================
   Avatar Styles
   ======================================== */
.avatar {
    @apply rounded-xl flex items-center justify-center text-white font-semibold shadow-md;
}

.avatar-sm {
    @apply h-6 w-6 text-xs;
}

.avatar-md {
    @apply h-10 w-10 text-sm;
}

.avatar-lg {
    @apply h-14 w-14 text-base;
}

/* ========================================
   Footer Link Animation
   ======================================== */
.footer-link svg {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.footer-link:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   Division Toggle
   ======================================== */
.division-toggle {
    @apply flex items-center bg-white/10 rounded-full p-1;
}

.division-btn {
    @apply px-4 py-1.5 text-xs font-semibold rounded-full transition-all;
}

.division-btn.active {
    @apply bg-gradient-to-r from-green-500 to-emerald-600 text-white shadow-lg shadow-green-500/25;
}

.division-btn:not(.active) {
    @apply text-white/60 hover:text-white/90;
}

/* ========================================
   Progress Bar
   ======================================== */
.progress-bar {
    @apply w-full bg-gray-100 rounded-full h-2;
}

.progress-bar-fill {
    @apply h-2 rounded-full;
}

.progress-bar-fill.success {
    @apply bg-gradient-to-r from-emerald-500 to-green-500;
}

.progress-bar-fill.warning {
    @apply bg-gradient-to-r from-amber-500 to-orange-500;
}

.progress-bar-fill.info {
    @apply bg-gradient-to-r from-blue-500 to-blue-400;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none;
    }
}
