/* Buttons - Matching the Design Example */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 800;
    border-radius: var(--radius-lg);
}

.btn-sm { 
    padding: 8px 16px; 
    font-size: 0.8rem; 
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-primary { 
    background: var(--primary); 
    color: #fff; 
    box-shadow: 0 10px 15px -3px var(--primary-glow); 
}

.btn-primary:hover { 
    background: var(--primary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 20px 25px -5px var(--primary-glow); 
}

.btn-outline { 
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border); 
    color: #fff; 
}

.btn-outline:hover { 
    border-color: var(--primary); 
    background: rgba(249, 6, 6, 0.1); 
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-success { 
    background: var(--accent-green); 
    color: #fff; 
    box-shadow: 0 10px 15px -3px var(--accent-green-soft); 
}

.btn-success:hover { 
    background: #16a34a; 
    transform: translateY(-2px);
}

.btn-danger { 
    background: var(--primary); 
    color: #fff; 
}

.btn-block { display: flex; width: 100%; }

/* Cards - Matching the Design Example */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover { 
    border-color: var(--border-light); 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-md); 
}

/* Forms */
.form-group { margin-bottom: 24px; }
.form-label { 
    display: block; 
    margin-bottom: 8px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control { 
    width: 100%; 
    min-height: 48px; 
    padding: 12px 20px; 
    background: var(--bg-surface-elevated); 
    border: 1px solid var(--border-light); 
    border-radius: var(--radius-xl); 
    color: var(--text-title); 
    font-size: 0.95rem; 
    font-family: inherit; 
    line-height: 1.4;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    display: block;
}

.form-control:focus { 
    outline: none; 
    border-color: var(--primary); 
    background: var(--bg-surface-hover); 
    box-shadow: 0 0 0 4px var(--primary-soft); 
}

/* Select Styling Fix */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
    cursor: pointer;
}

/* Ensure dropdown options are visible and professional */
select.form-control option {
    background-color: #282932; /* Match elevated surface */
    color: #f8fafc; /* Match text title */
    padding: 12px;
}

/* Internal Search Button Styling */
.search-input-wrapper { position: relative; }
.search-btn-inside {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.search-btn-inside:hover {
    color: #000000;
}
.search-btn-inside .material-symbols-outlined {
    font-size: 22px !important; /* Increased size */
}

/* Alerts */
.alert { 
    padding: 18px; 
    border-radius: var(--radius-md); 
    margin-bottom: 24px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    animation: slideUp 0.3s ease-out forwards; 
}
.alert-success { background: var(--accent-green-soft); border: 1px solid var(--accent-green); color: #4ade80; }
.alert-error { background: var(--primary-soft); border: 1px solid var(--primary); color: #f87171; }

/* Badges */
.badge { 
    display: inline-block; 
    padding: 6px 10px; 
    border-radius: var(--radius-sm); 
    font-size: 0.7rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}
.badge-primary { background: var(--primary); color: #fff; }
.badge-success { background: var(--accent-green); color: #fff; }
.badge-warning { background: var(--accent-yellow); color: #000; }
.badge-secondary { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

/* Typography Helpers */
.title-xl { font-size: 3.5rem; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.title-lg { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
