/* Reset and base */ 
body, html {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
    background: #f4f6f8;
    color: #333;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #222;
    color: #fff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    padding-top: 20px;
    z-index: 10;
}

.sidebar h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffd700;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    transition: 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #444;
}

/* Admin main content */
.admin-main {
    margin-left: 220px;
    padding: 30px;
    min-height: 100vh;
    background: #f9f9f9;
}

/* Login + Forms Container */
.form-container {
    max-width: 400px;
    background: #fff;
    padding: 30px;
    margin: 80px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 10px;
    text-align: center;
}

.form-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
}

button[type="submit"],
.btn {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background:#C1A78C;
    color: black;
    margin-top: 10px;
    display: inline-block;
}

button[type="submit"]:hover,
.btn:hover {
    background: #C1A78C;
}

.btn-edit {
    background: #17a2b8;
}

.btn-delete {
    background: #dc3545;
}

.btn-add {
    background: #28a745;
    margin-bottom: 20px;
}

/* Table styles */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 15px;
}

th {
    background: #f1f1f1;
    font-weight: 600;
}

/* Messages */
.error {
    color: red;
    margin-bottom: 10px;
    text-align: center;
}

.success {
    color: green;
    margin-bottom: 10px;
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }

    .sidebar a {
        flex: 1;
        text-align: center;
        padding: 15px;
        border-right: 1px solid #333;
    }

    .admin-main {
        margin: 0;
        padding: 20px;
    }

    .form-container {
        margin: 40px 10px;
    }

    table th, table td {
        font-size: 14px;
        padding: 10px;
        word-break: break-word;
    }
}

/* Logo branding */
.logo {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    width: 100px;
    height: auto;
    border-radius: 10px;
}
