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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    background: #f5f5f7;
    color: #1d1d1f;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Styles */
.header {
    background: #ffffff;
    padding: 1.5rem 0;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.header h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 800;
    color: #1d1d1f;
    letter-spacing: -1px;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px;
}

.navbar a {
    color: #6e6e73;
    text-decoration: none;
    padding: 12px 24px;
    background: #f5f5f7;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border: 1px solid #e5e5e5;
}

.navbar a:hover {
    background: #e8e8ed;
    color: #1d1d1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d2d2d7;
}

/* Main Content */
.main-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.page-header h2 {
    font-size: 2em;
    font-weight: 700;
    color: #1d1d1f;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    border-left: 4px solid;
}

.alert.success {
    background: #e6f7ed;
    color: #0f6938;
    border-left-color: #34c759;
}

.alert.error {
    background: #fef0f0;
    color: #c41e3a;
    border-left-color: #ff3b30;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e5;
}

table th, table td {
    padding: 18px 20px;
    text-align: left;
}

table th {
    background: #f5f5f7;
    color: #1d1d1f;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e5e5;
}

table tbody tr {
    background: #ffffff;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f7;
}

table tbody tr:hover {
    background: #fafafa;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.status {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.available {
    background: #34c759;
    color: #ffffff;
}

.status.rented {
    background: #ff3b30;
    color: #ffffff;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1em;
    background: #ffffff;
    color: #1d1d1f;
}

.form-control:focus {
    outline: none;
    border-color: #0071e3;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.form-control::placeholder {
    color: #86868b;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    background: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 113, 227, 0.25);
}

.btn:active {
    transform: translateY(0);
}

.btn-success {
    background: #34c759;
}

.btn-success:hover {
    background: #30b350;
    box-shadow: 0 8px 16px rgba(52, 199, 89, 0.25);
}

.btn-danger {
    background: #ff3b30;
}

.btn-danger:hover {
    background: #ff453a;
    box-shadow: 0 8px 16px rgba(255, 59, 48, 0.25);
}

.btn-warning {
    background: #ff9500;
    color: #ffffff;
}

.btn-warning:hover {
    background: #ff9f0a;
    box-shadow: 0 8px 16px rgba(255, 149, 0, 0.25);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 24px;
    color: #6e6e73;
    border-top: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #ffffff;
}

/* Action Buttons in Tables */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Dashboard Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.stat-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e5e5;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0071e3;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #d2d2d7;
}

.stat-card h3 {
    color: #6e6e73;
    margin-bottom: 16px;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .number {
    font-size: 3em;
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .main-content {
        padding: 24px;
    }

    .navbar ul {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar a {
        text-align: center;
    }

    .form-row {
        flex-direction: column;
    }

    table th, table td {
        padding: 12px;
        font-size: 0.9em;
    }
}