* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #035068 0%, #1eadc0 100%);
            display: flex;
            flex-direction: column;
            color: #333;
        }

        /* Top Banner/Header */
        .top-banner {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .brand img {
            height: 45px;
            width: auto;
            border-radius: 8px;
        }

        .brand strong {
            font-size: 24px;
            background: linear-gradient(135deg, #035068 0%, #1eadc0 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* User corner with logout button */
        .user-corner {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 6px 10px;
            background: rgba(102, 126, 234, 0.06);
            border-radius: 30px;
            border: 1px solid rgba(3,80,104,0.06);
        }

        .user-corner .user-info {
            display: flex;
            flex-direction: column;
            line-height: 1;
            min-width: 0;
        }

        .user-corner .user-name {
            font-weight: 700;
            color: #033a43;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .user-corner .user-role {
            font-size: 12px;
            color: #6b6b6b;
        }

        .user-corner img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(3,80,104,0.15);
            flex-shrink: 0;
        }

        .user-corner .logout-btn {
            margin-left: 8px;
            background: transparent;
            border: 1px solid rgba(3,80,104,0.12);
            color: #033a43;
            padding: 6px 10px;
            border-radius: 18px;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.18s ease;
        }

        .user-corner .logout-btn:hover {
            background: #035068;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(3,80,104,0.18);
            border-color: rgba(3,80,104,0.25);
        }

        /* Compact layout on small screens */
        @media (max-width: 480px) {
            .user-corner {
                gap: 8px;
                padding: 6px;
            }

            .user-corner .user-info {
                display: none;
            }

            .user-corner .logout-btn {
                padding: 6px 8px;
                font-size: 12px;
            }
        }
    .container {
            max-width: 100%;
            margin: 0 auto;
            background: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        h1 {
            margin-bottom: 30px;
            color: #333;
        }

        .section {
            margin-bottom: 50px;
        }

        .section h2 {
            color: #667eea;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        /* Main Container */
        .container-main {
            display: flex;
            flex: 1;
            gap: 0;
            overflow: hidden;
        }

        /* Sidebar */
        .sidebar {
            width: 250px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-right: 1px solid rgba(255, 255, 255, 0.2);
            padding: 30px 20px;
            overflow-y: auto;
            color: white;
        }
        .home-view{
            text-align: center;
            padding: 50px 20px;
        }
        
        .home-view h1 {
            font-size: 28px;
            background: linear-gradient(135deg, #035068 0%, #1eadc0 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            
        }
        .home-view form {
            max-width: 480px;
            margin: 0 auto;
            background: white;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            border-top: 2px solid #035068;
        }
        .home-view .form-group {
            margin-bottom: 25px;
        }
        .home-view label {
            font-weight: 600;
            color: #555;
        }
        .home-view input[type="email"],
        .home-view input[type="password"] {
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        .home-view input[type="email"]:focus,
        .home-view input[type="password"]:focus {
            border-color: #035068;
            outline: none;
        }
        .home-view .button-group {
            margin-top: 30px;
        }
        .home-view button {
            padding: 15px 30px;
            font-size: 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .home-view button[type="submit"] {
            background: linear-gradient(135deg, #035068 0%, #1eadc0 100%);
            color: white;
            border: none;
        }
        .home-view button[type="submit"]:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(3, 80, 104, 0.4);
        }
        .home-view .reset-btn {
            background: #6c757d;
            color: white;
            border: none;
        }
        .home-view .reset-btn:hover {
            background: #5a6268;
        }
        /* Login layout with logos on both sides */
        .home-view .login-layout {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 32px;
            max-width: 960px;
            margin: 30px auto 0;
            padding: 0 20px;
        }

        .home-view .logo-side {
            flex: 0 0 110px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.98;
        }

        .home-view .logo-side img {
            width: 100%;
            height: auto;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(3,80,104,0.12);
            background: #fff;
            padding: 8px;
            border: 1px solid #035068;
        }

        .home-view .login-card {
            flex: 1 1 420px;
            max-width: 480px;
        }

        .home-view .login-card form {
            width: 100%;
            margin: 0;
            padding: 36px;
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(3,80,104,0.12);
            background: linear-gradient(180deg, rgba(255,255,255,0.98), #ffffff);
            border-top: 3px solid #035068;
        }

        @media (max-width: 900px) {
            .home-view .login-layout {
                gap: 18px;
            }

            .home-view .logo-side img {
                width: 86px;
            }
        }

        @media (max-width: 680px) {
            .home-view .login-layout {
                flex-direction: column;
            }

            .home-view .logo-side {
                order: 0;
            }

            .home-view .login-card {
                width: 100%;
                max-width: 420px;
            }
        }
        .sidebar nav {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .sidebar a {
            color: white;
            text-decoration: none;
            padding: 14px 18px;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-weight: 500;
            display: block;
            position: relative;
        }

        .sidebar a:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(8px);
        }

        .sidebar a.active {
            background: rgba(255, 255, 255, 0.25);
            border-left: 4px solid #ffd700;
            padding-left: 14px;
        }

        /* Main Content Area */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: auto;
            padding: 30px;
        }

        /* View Navigation */
        .view-nav {
            display: flex;
            gap: 25px;
            margin-bottom: 30px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.2);
            padding-bottom: 15px;
            flex-wrap: wrap;
        }

        .view-nav a {
            text-decoration: none;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 600;
            font-size: 15px;
            transition: all 0.3s ease;
            position: relative;
            padding-bottom: 8px;
        }

        .view-nav a:hover {
            color: white;
        }

        .view-nav a.active {
            color: #ffd700;
            border-bottom: 3px solid #ffd700;
        }

        /* Content Card */
        .content-card {
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
            flex: 1;
            overflow-y: auto;
        }

        .content-card h1,
        .content-card h2,
        .content-card h3 {
            color: #333;
            margin-bottom: 20px;
        }

        /* Footer */
        footer {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding: 20px 30px;
            text-align: center;
            color: white;
            font-size: 14px;
        }

        /* Scrollbar Styling */
        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .sidebar {
                width: 200px;
                padding: 20px 15px;
            }

            .main-content {
                padding: 20px;
            }
        }

        @media (max-width: 768px) {
            .container-main {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.2);
                padding: 15px;
                max-height: 200px;
            }

            .sidebar nav {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 10px;
            }

            .sidebar a {
                padding: 10px 15px;
                font-size: 14px;
            }

            .main-content {
                padding: 15px;
            }

            .content-card {
                padding: 20px;
            }

            .top-banner {
                padding: 12px 20px;
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .brand strong {
                font-size: 20px;
            }

            .view-nav {
                gap: 15px;
                padding-bottom: 10px;
            }

            .view-nav a {
                font-size: 14px;
            }
        }

        @media (max-width: 480px) {
            body {
                background: linear-gradient(135deg, #035068 0%, #1eadc0 100%);
            }

            .top-banner {
                padding: 10px 15px;
            }

            .brand {
                gap: 10px;
            }

            .brand strong {
                font-size: 18px;
            }

            .sidebar {
                padding: 10px;
            }

            .sidebar a {
                padding: 8px 12px;
                font-size: 13px;
            }

            .main-content {
                padding: 10px;
            }

            .content-card {
                padding: 15px;
                border-radius: 8px;
            }
        }

/* Data Display Controls */
        .data-display-controls {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        align-items: center;
    }

    .view-toggle-buttons {
        display: flex;
        gap: 8px;
    }

    .view-toggle-btn {
        padding: 10px 16px;
        border: 2px solid #ddd;
        background: white;
        color: #666;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
    }

    .view-toggle-btn:hover {
        border-color: #03811e;
        color: #056c0a;
    }

    .view-toggle-btn.active {
        background: #085501;
        color: white;
        border-color: #085501;
    }

    /* Table View Styles */
    .table-view-container {
        overflow-x: auto;
    }

    .data-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
    }

    .data-table thead {
        background: #f8f9fa;
    }

    .data-table th {
        padding: 15px;
        text-align: left;
        font-weight: 600;
        color: #333;
        border-bottom: 2px solid #148902;
    }

    .data-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        color: #555;
    }

    .data-table tbody tr {
        transition: all 0.2s ease;
    }

    .data-table tbody tr:hover {
        background: #c4f0ab;
        transform: translateX(4px);
    }

    .action-buttons {
        display: flex;
        gap: 8px;
    }

    .action-btn {
        padding: 6px 12px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 600;
        transition: all 0.2s ease;
        text-decoration: none;
        color: white;
    }

    .action-btn.edit-btn {
        background: #4CAF50;
    }

    .action-btn.edit-btn:hover {
        background: #45a049;
    }

    .action-btn.delete-btn {
        background: #f44336;
    }

    .action-btn.delete-btn:hover {
        background: #da190b;
    }

    .action-btn.view-btn {
        background: #2196F3;
    }

    .action-btn.view-btn:hover {
        background: #0b7dda;
    }

    /* Gallery/Card View Styles */
    .gallery-view-container {
        display: none;
    }

    .gallery-view-container.active {
        display: grid;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin-top: 15px;
    }

    .data-card {
        background: white;
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .data-card:hover {
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
        transform: translateY(-4px);
        border-color: #5ff818;
    }

    .data-card-header {
        justify-content: space-between;
        align-items: start;
        margin-bottom: 15px;
    }

    .data-card-title {
        font-size: 18px;
        font-weight: 700;
        color: #333;
    }

    .data-card-badge {
        background: #00510f;
        color: white;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        float: right;
    }

    .data-card-content {
        flex: 1;
        margin-bottom: 15px;
    }

    .data-card-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .data-card-label {
        font-weight: 600;
        color: #666;
        font-size: 13px;
    }

    .data-card-value {
        color: #333;
        font-weight: 500;
        text-align: right;
    }

    .data-card-footer {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
    }

    .data-card-btn {
        padding: 8px 14px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 600;
        transition: all 0.2s ease;
        text-decoration: none;
        color: white;
        flex: 1;
        text-align: center;
    }

    .data-card-btn.edit-btn {
        background: #4CAF50;
    }

    .data-card-btn.edit-btn:hover {
        background: #45a049;
    }

    .data-card-btn.delete-btn {
        background: #f44336;
    }

    .data-card-btn.delete-btn:hover {
        background: #da190b;
    }

    .data-card-btn.view-btn {
        background: #2196F3;
    }

    .data-card-btn.view-btn:hover {
        background: #0b7dda;
    }

    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: #999;
    }

    .empty-state-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .empty-state-text {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .empty-state-subtext {
        font-size: 14px;
        color: #bbb;
    }
    h1 {
            text-align: center;
            color: white;
            margin-bottom: 30px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
    .form-section {
        background: white;
        border-radius: 8px;
        padding: 30px;
        margin-bottom: 30px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
    
    .form-section h2 {
        color: #333;
        margin-bottom: 20px;
        font-size: 22px;
        border-bottom: 3px solid #5a6761;
        padding-bottom: 10px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    label {
        display: block;
        margin-bottom: 8px;
        color: #333;
        font-weight: 600;
        font-size: 14px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        font-family: inherit;
        transition: border-color 0.3s, box-shadow 0.3s;
    }
    
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="number"]:focus,
    input[type="date"]:focus,
    input[type="time"]:focus,
    input[type="tel"]:focus,
    input[type="url"]:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #00c832;
        box-shadow: 0 0 8px rgba(10, 131, 75, 0.3);
    }
    
    textarea {
        resize: vertical;
        min-height: 100px;
    }
    
    .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
    
    .form-row.full {
        grid-template-columns: 1fr;
    }
    
    button {
        background: linear-gradient(135deg,  #035068 0%, #1eadc0 100%);
        color: white;
        padding: 12px 30px;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    button:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }
    
    button:active {
        transform: translateY(0);
    }
    
    .reset-btn {
        background: #6c757d;
        margin-left: 10px;
    }
    .add-btn {
        background: linear-gradient(135deg, #013059 0%, #0f5abb 100%);
        margin-left: 10px;
    }
    
    .reset-btn:hover {
        box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
    }
    
    .button-group {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }
    
    @media (max-width: 768px) {
        .form-row {
            grid-template-columns: 1fr;
        }
        
        .form-section {
            padding: 20px;
        }
    }
/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .data-card {
        padding: 15px;
    }

    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
}