/* assets/css/style_admin.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f6f9;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #3498db;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    max-width: 600px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="file"],
button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #2ecc71;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #27ae60;
}

img {
    max-width: 100px;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);


}

@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th {
        background-color: #2980b9;
        text-align: center;
    }

    td {
        text-align: right;
        position: relative;
        padding-left: 50%;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: bold;
    }

    form {
        width: 100%;
    }
}
a.btn {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 15px;
    background-color: #3498db;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}
a.btn:hover {
    background-color: #2980b9;
}
.status-pending { color: orange; }
.status-diproses { color: blue; }
.status-selesai { color: green; }
/* Navbar Styles */
.navbar {
    background-color: #2c3e50;
    padding: 15px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-logo a {
    color: #ecf0f1;
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
}
.navbar-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}
.navbar-menu li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.navbar-menu li a:hover {
    color: #1abc9c;
}
/* Styling untuk Halaman Profil Admin */
.container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

form .form-group {
    margin-bottom: 15px;
}

form .form-group label {
    display: block;
    font-weight: bold;
}

form .form-group input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background-color: #34495e;
}

a {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    text-decoration: none;
    color: #e74c3c;
}

a:hover {
    text-decoration: underline;
}
/* Footer Styles */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 2px solid #34495e;
}

.footer p {
    margin: 0;
    font-size: 14px;
}
/* Header Styles */
.header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    font-weight: bold;
}
/* Navbar Styles untuk Customer */
.navbar-custumer {
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: #34495e;
    padding: 15px 20px;
}

.navbar-custumer a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-custumer a:hover {
    color: #1abc9c;
}
/* Dashboard Stats Styles */
.dashboard-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background-color: #34495e;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 200px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 80%;
        margin-bottom: 20px;
    }
}
/* Container Tabel */
.container {
    width: 100%;
    max-width: 1200px; /* Max-width untuk menjaga ukuran tetap proporsional */
    margin: 0 auto;
    padding: 20px;
}

/* Table Wrapper */
.table-wrapper {
    width: 100%; /* Membuat lebar tabel mengikuti lebar container */
    margin-top: 20px;
    overflow-x: auto; /* Jika perlu scroll horizontal */
}

/* Styling Tabel */
table {
    width: 100%; /* Tabel akan mengambil lebar penuh dari container */
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 15px 20px; /* Memberikan ruang lebih pada kolom */
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Styling untuk header tabel */
table th {
    background-color: #2c3e50;
    color: white;
    font-size: 16px;
    text-transform: uppercase;
}

/* Styling untuk data tabel */
table td {
    font-size: 14px;
}

/* Styling gambar dalam tabel */
table td img {
    border-radius: 5px;
    width: 100px; /* Ukuran gambar yang konsisten */
}

/* Styling tombol Edit dan Hapus di kolom Aksi */
table td .btn-action {
    padding: 8px 12px;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 10px; /* Memberikan ruang antar tombol */
    text-align: center;
}

table td .btn-action:hover {
    background-color: #2980b9;
}

table td .btn-delete {
    background-color: #e74c3c;
}

table td .btn-delete:hover {
    background-color: #c0392b;
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    table, th, td {
        display: block;
        width: 100%;
    }

    table th {
        background-color: #34495e;
    }

    table td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 12px;
        font-weight: bold;
        color: #7f8c8d;
    }

    .table-wrapper {
        margin-top: 30px;
    }
}
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.pagination a:hover {
    background-color: #2980b9;
}

.pagination a.active {
    background-color: #2980b9;
}

.pagination a.prev, .pagination a.next {
    background-color: #2ecc71;
}

.pagination a.prev:hover, .pagination a.next:hover {
    background-color: #27ae60;
}
/* Styling untuk tombol Edit dan Hapus di kolom Aksi */
table td .btn-action, table td .btn-delete {
    display: inline-block;
    padding: 8px 15px;
    margin-right: 10px; /* Memberikan ruang antar tombol */
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Tombol Edit */
table td .btn-action {
    background-color: #3498db;
    color: white;
}

table td .btn-action:hover {
    background-color: #2980b9;
    transform: translateY(-2px); /* Efek hover sedikit angkat */
}

/* Tombol Hapus */
table td .btn-delete {
    background-color: #e74c3c;
    color: white;
}

table td .btn-delete:hover {
    background-color: #c0392b;
    transform: translateY(-2px); /* Efek hover sedikit angkat */
}

/* Responsif untuk tombol di dalam tabel */
@media (max-width: 768px) {
    table td .btn-action, table td .btn-delete {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px; /* Memberikan jarak antar tombol */
    }
}
/* CSS untuk halaman tambah_mobil.php */
.form-container {
    width: 100%;
    max-width: 800px; /* Lebar maksimal untuk form */
    margin: 50px auto; /* Menempatkan form di tengah dengan margin atas dan bawah */
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px; /* Rounded corners */
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="number"],
form input[type="file"],
form button {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box; /* Menghindari overflow pada form */
}

form button {
    background-color: #2ecc71;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #27ae60;
}

/* Pesan error */
form p {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Responsif untuk perangkat mobile */
@media (max-width: 768px) {
    .form-container {
        margin: 30px 10px; /* Menambah ruang di sisi kiri dan kanan */
        padding: 15px;
    }
    
    form label {
        font-size: 12px;
    }

    form input[type="text"],
    form input[type="number"],
    form input[type="file"],
    form button {
        font-size: 14px;
    }
}
/* Fix khusus untuk form login agar tidak terkena efek .container global */
.login-container {
    max-width: 400px;
    width: 90%;
    margin: 100px auto;
    padding: 30px 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.login-container form {
    display: flex;
    flex-direction: column;
}

.login-container label {
    margin: 10px 0 5px;
    font-weight: bold;
}

.login-container input[type="email"],
.login-container input[type="password"] {
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.login-container button {
    margin-top: 20px;
    padding: 12px;
    font-size: 16px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #27ae60;
}

.login-container p {
    color: red;
    text-align: center;
    margin-top: 10px;
}
