body {
    font-family: 'Segoe UI', sans-serif;
    background: url('/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Glass Container */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);

    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-weight: bold;
    color: #0b2545;
    text-decoration: none;
    font-size: 22px;
}

/* Nav Links */
nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #0b2545;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #0077ff;
}

/* Hero Section */
.hero {
    margin-top: 20px;
}

.hero h1 {
    font-size: 32px;
    color: #0b2545;
}

.hero p {
    color: #333;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    transition: 0.3s;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #0077ff, #00c6ff);
    color: white;
    box-shadow: 0 4px 15px rgba(0,119,255,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,119,255,0.6);
}

/* Secondary Button */
.btn-secondary {
    background: rgba(255,255,255,0.4);
    color: #0b2545;
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.6);
}

/* Register Button in Navbar */
.nav-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0077ff, #00c6ff);
    color: white !important;
}

/* Login Form Styling */
form {
    margin-top: 15px;
}

/* Input Fields */
input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;

    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.5);

    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);

    outline: none;
    font-size: 14px;
}

/* Input Focus */
input:focus {
    border: 1px solid #0077ff;
    box-shadow: 0 0 8px rgba(0,119,255,0.4);
}

/* Login Button */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #0077ff, #00c6ff);
    color: white;
    font-weight: bold;
    cursor: pointer;

    transition: 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,119,255,0.5);
}

/* Error Message */
.error {
    color: #ff4d4d;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Action Buttons (top section) */
.actions {
    margin-bottom: 15px;
}

.actions a {
    margin-right: 10px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 10px;
}

/* Table Header */
table th {
    background: rgba(0, 119, 255, 0.2);
    color: #0b2545;
    padding: 12px;
    text-align: left;
}

/* Table Rows */
table td {
    padding: 12px;
    background: rgba(255,255,255,0.3);
}

/* Alternate Row Effect */
table tr:nth-child(even) td {
    background: rgba(255,255,255,0.2);
}

/* Hover Effect */
table tr:hover td {
    background: rgba(0,119,255,0.1);
}

/* Delete Button */
.btn-danger {
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(255,0,0,0.4);
}

/* Small Buttons */
.btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

/* Select Dropdown */
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;

    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.5);

    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);

    outline: none;
    font-size: 14px;
}

/* Select Focus */
select:focus {
    border: 1px solid #0077ff;
    box-shadow: 0 0 8px rgba(0,119,255,0.4);
}

/* Labels */
label {
    font-weight: 500;
    color: #0b2545;
}

/* Form spacing */
.form-group {
    margin-bottom: 15px;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #00c851);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(40,167,69,0.4);
}

/* Section Divider */
.divider {
    margin: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.4);
}

/* Section Titles */
h3 {
    margin-bottom: 10px;
    color: #0b2545;
}

/* Category Form Button spacing */
form button {
    margin-top: 10px;
}

/* Danger Button (Delete) */
.btn-danger {
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(255,0,0,0.4);
}


/* ========================= */
/* RESPONSIVE DESIGN */
/* ========================= */

/* Tablet */
@media (max-width: 992px) {

    .container {
        width: 95%;
        padding: 20px;
    }

    .hero h1 {
        font-size: 26px;
    }

    nav a {
        margin-left: 8px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Navbar stack */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
    }

    nav a {
        margin: 5px 8px 5px 0;
    }

    /* Hero buttons stack */
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    /* Forms */
    input, select, button {
        width: 100%;
    }

    /* Table scroll */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}