/* Reset dan base styles */
* {
    margin: 0;
    padding: 0px 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

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

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 0px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: Crimson;
    text-decoration: none;
    padding: 0px 0;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: lightgreen;
}

.admin-btn {
    background-color: #e74c3c;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main content */
main {
    min-height: 70vh;
        padding: 0px 0;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(52, 152, 219, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
        padding: 0px 0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 25px;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
        padding: 0px 0;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
        padding: 0px 0;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
        padding: 0px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #3498db;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-section i {
    margin-right: 10px;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
        padding: 0px 0;
    border-top: 1px solid #34495e;
    color: #bbb;
    font-size: 0.9rem;
}

/* Form styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
        padding: 0px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
        padding: 0px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Admin styles */
.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    min-height: 80vh;
}

.sidebar {
    background-color: #2c3e50;
    border-radius: 8px;
        padding: 0px 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    color: Yellow;
    text-decoration: none;
    display: block;
        padding: 0px 0;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #3498db;
}

.admin-content {
    background: white;
    border-radius: 8px;
        padding: 0px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.dashboard-card {
    background: #f8f9fa;
    border-radius: 8px;
        padding: 0px 0;
    text-align: center;
    border-left: 4px solid #00000;
}

.dashboard-card h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Table styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    padding:10px;
}

table th, table td {
    text-align: left;
    border-bottom: 1px solid #000000;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background-color: #f5f5f5;
}
table td:hover {
    background: yellow;
}

/* Alert messages */
.alert {
        padding: 0px 0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 0px 0;
        z-index: 1000;
    }
    
    nav ul.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

