/* Base Styles and Layout */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f9f9f9;
    padding: 0;
    margin: 0;
    color: #333;
    line-height: 1.4;
}

.content {
    margin-left: 180px;
    max-width: 1200px;
    padding: 20px;
    font-size: 13px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

a {
    color: darkorange;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Form Elements */
input, select, textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    color: #333;
}

textarea {
    min-height: 40px;
    resize: vertical;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: darkorange;
    box-shadow: 0 0 3px rgba(255, 140, 0, 0.3);
}

/* Buttons */
button, .btn {
    background: darkorange;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover, .btn:hover {
    background: orangered;
    text-decoration: none;
}

.delete-btn {
    background: crimson;
    margin-left: 5px;
}

.delete-btn:hover {
    background: darkred;
}

button.icon-btn {
    width: 30px;
    height: 30px;
    padding: 4px 6px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 12.5px;
    table-layout: fixed;
    word-wrap: break-word;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

th, td {
    padding: 8px 10px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
    box-sizing: border-box;
}

th {
    background: #f4f4f4;
    font-weight: 600;
    font-size: 13px;
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Checkbox Column Styling */
.checkbox-column {
    width: 30px !important;
    max-width: 30px !important;
    min-width: 30px !important;
    padding: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

input[type="checkbox"] {
    margin: 0;
    padding: 0;
    vertical-align: middle;
    transform: scale(1.2);
    width: auto;
}

.checkbox-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Navigation */
nav {
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

nav a {
    margin-right: 15px;
    font-weight: bold;
    color: darkorange;
    display: inline-block;
    padding: 5px 0;
}

nav a:hover {
    color: orangered;
    text-decoration: none;
}

nav a.active {
    border-bottom: 2px solid darkorange;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 180px;
    height: 100%;
    background-color: #333;
    padding-top: 20px;
    color: #fff;
    overflow-y: auto;
}

.sidebar a {
    display: block;
    color: #fff;
    padding: 12px 20px;
    transition: all 0.3s;
}

.sidebar a:hover {
    background-color: #444;
    text-decoration: none;
}

.sidebar a.active {
    background-color: darkorage;
}

/* Login and Authentication */
.login-box {
    width: 320px;
    margin: 80px auto;
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: darkorange;
}

.login-box input {
    margin-bottom: 15px;
}

.login-box button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
}

/* Utility Classes */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.bulk-actions {
    margin: 10px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.bulk-actions select, .bulk-actions button {
    width: auto;
}

/* Status Colors */
.bg-success {
    background-color: #d4edda !important;
}

.bg-warning {
    background-color: #fff3cd !important;
}

.bg-danger {
    background-color: #fdecea !important;
}

/* Text Colors */
.text-success {
    color: green !important;
}

.text-danger {
    color: red !important;
}

.text-warning {
    color: #856404 !important;
}

/* Cards & Containers */
.card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-header {
    margin: -15px -15px 15px;
    padding: 10px 15px;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

/* Dashboard Widgets */
.statistics {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 4px solid darkorange;
}

.stat-card h3 {
    margin-top: 0;
    color: #777;
    font-size: 14px;
}

.stat-card .number {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content {
        margin-left: 0;
        padding: 10px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-top: 0;
    }
    
    .login-box {
        width: 100%;
        max-width: 320px;
    }
    
    .statistics {
        flex-direction: column;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 6px 8px;
    }
}