:root {
    /* ISAT U Standard Colors - Used across all pages */
    --isat-blue: #1863dc;
    --isat-dark: #21397d;
    --isat-gold: #f9c41a;
    
    /* ISAT U Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f6f5;
    --bg-tertiary: #ededed;
    --bg-accent-1: #a0d5d2;
    --bg-accent-2: #f9c41a;
    --bg-accent-3: #1863dc;
    --bg-danger: #cd201f;
    --bg-social: #3b5998;
    --bg-dark-1: #21397d;
    --bg-dark-2: #010035;
    --bg-black: #000000;
    
    /* ISAT U Text Colors */
    --text-white: #ffffff;
    --text-light: #ededede6;
    --text-accent: #f9c41a;
    --text-muted: #a5a4a4;
    --text-success: #008000;
    --text-primary: #1863dc;
    --text-secondary: #21397d;
    --text-dark-1: #293c5b;
    --text-dark-2: #282828;
    --text-dark-3: #212121;
    --text-black: #000000;
    
    /* ISAT U Border Colors */
    --border-white: #ffffff;
    --border-light: #f4f4f4;
    --border-accent: #f9c41a;
    --border-muted: #a5a4a4;
    --border-primary-light: #21397db5;
    --border-primary: #21397d;
    --border-dark: #212121;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark-2);
    background-color: var(--bg-secondary);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
    color: var(--text-white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    margin-top: 2rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark-1);
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark-1);
}

/* Quick Actions Section */
.quick-actions-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.quick-actions-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark-1);
    font-size: 2.5rem;
}

/* Quick Actions section uses Bootstrap grid, not custom grid */

.action-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.action-card:hover {
    text-decoration: none;
    color: inherit;
}

.action-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px !important;
}

.action-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    height: 100%;
}

.action-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.action-card .card-text {
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin: 0.5rem 0 0 0;
}

.action-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.action-card .card-body > div:first-child {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    flex-shrink: 0;
}

.action-card .card-body > div:first-child i {
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-card .card-body > * {
    flex-shrink: 0;
}

.action-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark-1);
}

/* Footer */
.footer {
    background: var(--bg-dark-1);
    color: var(--text-white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Navigation */
.navbar {
    background: var(--bg-dark-1);
    color: var(--text-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Center navigation items */
.navbar-nav.me-auto {
    margin: 0 auto !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-accent-2) 0%, #ffd700 100%);
    color: var(--text-dark-2);
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark-1);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--text-dark-2);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-dark-1);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark-1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-accent-3);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--bg-dark-1);
}

.btn-secondary {
    background: var(--text-muted);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-dark-3);
}

.btn-full {
    width: 100%;
}

/* Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark-1);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark-1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-switch a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Test Credentials */
.test-credentials {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.test-credentials h4 {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.test-account {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.test-account:last-child {
    margin-bottom: 0;
}

.test-account:hover {
    background: var(--bg-accent-1);
    border-color: var(--text-primary);
    transform: translateY(-1px);
}

.test-account strong {
    color: var(--text-dark-1);
}

/* Search */
.search-container {
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    font-size: 1rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters select,
.filters input {
    padding: 10px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    background: var(--bg-primary);
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.item-card {
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-2px);
}

.item-image {
    width: 100%;
    height: 200px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    padding: 1.5rem;
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark-1);
}

.item-category {
    display: inline-block;
    background: var(--bg-accent-3);
    color: var(--text-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.item-description {
    color: var(--text-dark-2);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.item-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-lost {
    background: var(--bg-danger);
    color: var(--text-white);
}

.status-found {
    background: var(--text-success);
    color: var(--text-white);
}

.status-returned {
    background: var(--bg-accent-2);
    color: var(--text-black);
}

.status-archived {
    background: var(--text-muted);
    color: var(--text-white);
}

.item-archived {
    opacity: 0.7;
    border-left: 4px solid var(--text-muted);
}

.archived-badge {
    display: inline-block;
    background: var(--text-muted);
    color: var(--text-white);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h2 {
    color: var(--text-dark-1);
    margin: 0;
}

.dashboard-header p {
    color: var(--text-muted);
    margin: 0.5rem 0 0 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-white);
}

.stat-card.stat-lost .stat-icon {
    background: var(--bg-danger);
}

.stat-card.stat-found .stat-icon {
    background: var(--text-success);
}

.stat-card.stat-returned .stat-icon {
    background: var(--bg-accent-2);
    color: var(--text-black);
}

.stat-card.stat-total .stat-icon {
    background: var(--text-primary);
}

.stat-content {
    flex: 1;
    text-align: left;
}

.stat-content h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin: 0;
}

.stat-content p {
    color: var(--text-dark-2);
    font-weight: 600;
    margin: 0;
}

.quick-actions, .user-items-section {
    margin-bottom: 3rem;
}

.quick-actions h3, .user-items-section h3 {
    margin-bottom: 1rem;
    color: var(--text-dark-1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark-2);
}

/* Admin Dashboard */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.admin-items-list {
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.admin-item:last-child {
    border-bottom: none;
}

.admin-item-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark-1);
}

.admin-item-info p {
    color: var(--text-dark-2);
    font-size: 0.9rem;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-danger {
    background: var(--bg-danger);
    color: var(--text-white);
}

.btn-danger:hover {
    background: var(--bg-dark-2);
}

.btn-success {
    background: var(--text-success);
    color: var(--text-white);
}

.btn-success:hover {
    background: var(--bg-dark-1);
}

.btn-warning {
    background: var(--bg-accent-2);
    color: var(--text-black);
}

.btn-warning:hover {
    background: var(--bg-dark-1);
    color: var(--text-white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-primary);
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    position: relative;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

#modalContent {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 20;
}

.close:hover {
    color: var(--text-dark-2);
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    background: var(--bg-primary);
    border-radius: 10px 10px 0 0;
}

.modal-header h3 {
    color: var(--text-dark-1);
    margin-bottom: 0.5rem;
    padding-right: 3rem;
}

.modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

.contact-info {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.contact-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark-1);
}

/* Footer */
.footer {
    background: var(--bg-dark-1);
    color: var(--text-white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    font-weight: 600;
}

.alert-success {
    background: var(--bg-accent-1);
    color: var(--text-success);
    border: 1px solid var(--border-primary);
}

.alert-error {
    background: var(--bg-danger);
    color: var(--text-white);
    border: 1px solid var(--border-dark);
}

.alert-info {
    background: var(--bg-accent-3);
    color: var(--text-white);
    border: 1px solid var(--border-primary);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-dark-1);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .admin-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .admin-item-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.clickable { 
    cursor: pointer; 
    transition: transform 0.2s ease; 
}

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

/* Returned Items Styles */
.item-returned {
    border-left: 4px solid var(--text-success);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.status-returned {
    background: var(--text-success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.item-reporter {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.item-reporter small {
    color: var(--text-muted);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-description {
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Image Carousel */
.image-carousel {
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.carousel-header strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-dark-1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.carousel-slide img:hover {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: var(--text-primary);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--text-primary);
    transform: scale(1.3);
}

/* ISAT Standard Classes - Used across all pages */
.bg-isat { 
    background-color: var(--isat-blue) !important; 
}

.btn-isat { 
    background-color: var(--isat-blue); 
    border-color: var(--isat-blue); 
    color: white; 
}

.btn-isat:hover { 
    background-color: var(--isat-dark); 
    border-color: var(--isat-dark); 
    color: white; 
}

.text-isat { 
    color: var(--isat-blue); 
}

.navbar-brand { 
    color: white !important; 
    font-weight: bold; 
}

.stat-card { 
    border-left: 4px solid var(--isat-blue); 
}

/* Auth page specific styles */
.auth-bg {
    background: linear-gradient(135deg, var(--isat-blue), var(--isat-dark));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Admin actions styling */
.admin-actions { 
    white-space: nowrap; 
}

.admin-actions .btn { 
    margin: 0 2px; 
}

/* Item card image previews */
.card-img-top {
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
    position: relative;
    overflow: hidden;
}

.card-img-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.item-card .card-img-top {
    transition: transform 0.3s ease;
}

.item-card:hover .card-img-top {
    transform: scale(1.02);
}

/* No image placeholder */
.card-img-top.no-image {
    border: 2px dashed #dee2e6;
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.card-img-top.no-image i {
    color: #6c757d;
    opacity: 0.6;
}

/* Responsive image sizing */
@media (max-width: 768px) {
    .card-img-top {
        height: 180px !important;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 160px !important;
    }
}