/* === Base Styles === */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    position: relative;
}

.page-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #007bff;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Primary */
.btn.primary {
    background: #007bff;
    color: white;
}

.btn.primary:hover {
    background: #0056b3;
}

/* Secondary */
.btn.secondary {
    background: #6c757d;
    color: white;
}

.btn.secondary:hover {
    background: #565e64;
}

/* Edit */
.btn.edit {
    background: #ffc107;
    color: #222;
}

.btn.edit:hover {
    background: #e0a800;
}

/* Delete */
.btn.delete, .btn.danger {
    background: #e63946;
    color: white;
}

.btn.delete:hover, .btn.danger:hover {
    background: #d62828;
}

/* Small button */
.btn.small {
    font-size: 13px;
    padding: 6px 12px;
}

/* Full width */
.btn.full-width {
    width: 100%;
}

/* Logout container */
.logout-container {
    text-align: right;
    margin-bottom: 20px;
}

/* === Cards === */
.section-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* === Forms === */
.listing-form {
    display: grid;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

input[type="text"], textarea, select, input[type="file"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus, select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* === Table === */
.listings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.listings-table th, .listings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.listings-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.listings-table tbody tr:hover {
    background: #f1f5ff;
}

/* === Responsive === */
@media (min-width: 768px) {
    .listing-form {
        grid-template-columns: 1fr 1fr;
    }
    .listing-form .form-group {
        min-width: 0;
    }
    .listing-form button {
        grid-column: span 2;
    }
}
