/* style.css - Global Styles for IDDIR CONNECT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --coffee: #4B3621;
    --leaf: #2D5A27;
    --black: #000000;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-900: #0f172a;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.glass-card {
    background: var(--white);
    border: 1px solid var(--black);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bw-gradient {
    background: linear-gradient(135deg, var(--coffee) 0%, var(--leaf) 100%);
}

.coffee-bg { background-color: var(--coffee); }
.leaf-bg { background-color: var(--leaf); }
.coffee-text { color: var(--coffee); }
.leaf-text { color: var(--leaf); }

/* Stylish Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.badge-coffee {
    background-color: rgba(75, 54, 33, 0.1);
    color: var(--coffee);
    border: 1px solid rgba(75, 54, 33, 0.2);
}

.badge-leaf {
    background-color: rgba(45, 90, 39, 0.1);
    color: var(--leaf);
    border: 1px solid rgba(45, 90, 39, 0.2);
}

.badge-black {
    background-color: var(--black);
    color: var(--white);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid currentColor;
}

/* Button Overrides */
.btn-primary {
    background-color: var(--coffee);
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3d2c1b;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(75, 54, 33, 0.3);
}

.btn-secondary {
    background-color: var(--leaf);
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #244a20;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(45, 90, 39, 0.3);
}

/* Sidebar Layout */
.sidebar {
    transition: all 0.3s ease-in-out;
    z-index: 50;
    overflow: hidden;
    background-color: var(--white);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
}

.sidebar-text {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap;
}

.sidebar:hover .sidebar-text {
    opacity: 1;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-text {
        opacity: 1;
    }
    .main-content {
        margin-left: 0 !important;
    }
}

@media (min-width: 769px) {
    .sidebar {
        width: 80px;
    }
    .sidebar:hover {
        width: 280px;
    }
    .main-content {
        margin-left: 80px;
        transition: margin-left 0.3s ease-in-out;
    }
    .sidebar:hover + .main-content {
        margin-left: 280px;
    }
}

/* Print Styles */
@media print {
    .sidebar, .no-print, .md\:hidden {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }
    body {
        background-color: white;
    }
    .glass-card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* Custom Utilities */
.input-focus {
    transition: all 0.3s ease;
}

.input-focus:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(75, 54, 33, 0.1);
    border-color: var(--coffee);
}

.tab-active {
    border-bottom: 3px solid var(--coffee);
    color: var(--coffee);
}

/* Scrollable Modal */
.modal-scrollable {
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--coffee) transparent;
}

.modal-scrollable::-webkit-scrollbar {
    width: 6px;
}

.modal-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scrollable::-webkit-scrollbar-thumb {
    background-color: var(--coffee);
    border-radius: 20px;
}

/* Sticky SweetAlert Customization */
.swal2-popup.swal2-toast {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}
