/* SIPPENA Main Theme - Soft Ethereal */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #10b981;
    /* Emerald 500 */
    --primary-dark: #059669;
    /* Emerald 600 */
    --secondary-color: #14b8a6;
    /* Teal 500 */
    --accent-color: #34d399;
    /* Emerald 400 */
    --bg-color: #f3f4f6;
    /* Cool Gray 100 */
    --text-dark: #1f2937;
    /* Cool Gray 800 */
    --text-muted: #6b7280;
    /* Cool Gray 500 */
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Aliases for variables used in gradients */
    --primary-emerald: var(--primary-color);
    --secondary-teal: var(--secondary-color);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
}

.glass-card {
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-dark)) !important;
}

/* Custom Buttons */
.btn-primary {
    background-color: var(--primary-color) !important;
    background: linear-gradient(135deg, var(--primary-emerald), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.6rem 1.5rem !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-danger {
    background-color: #ef4444 !important;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 0.6rem 1.5rem !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-primary:hover,
.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transform: scale(1.02) !important;
}

/* Navbar Customisation */
.navbar-sippena {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
}

.nav-link-sippena {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
}

.nav-link-sippena:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-dark) !important;
}

/* Sidebar (if applicable) */
.sidebar {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table tr {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}

.table td,
.table th {
    border: none !important;
    padding: 1.2rem 1rem !important;
}

.table tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.table tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.table thead th {
    background: transparent !important;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.badge-sippena {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.custom-input {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.custom-input:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    border-color: var(--primary-emerald);
}

/* Modal Stacking Fixes */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.navbar-sippena {
    z-index: 1030 !important;
}

/* Ensure all buttons are continually visible without hover */
.btn {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Specific fix for buttons in tables to maintain alignment if needed */
.table td .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Optional: Add a subtle hover effect that doesn't affect visibility */
.table tr:hover td .btn {
    transform: scale(1.05) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}