/* ===== Global layout ===== */

body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 0;
}

.container {
    margin: 40px auto;
    max-width: 1200px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== Header ===== */

.topbar {
    background: #2f2f2f;
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 40px;
    width: auto;
    display: block;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.icon-btn img {
    width: 22px;
    height: 22px;
    display: block;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-right {
    gap: 12px;
}

.header-right a,
.header-right button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.header-right a:hover,
.header-right button:hover {
    background-color: rgba(255, 255, 255, 0.12);
    opacity: 0.9;
}

.header-right img {
    width: 22px;
    height: 22px;
}

.header-left a:hover {
    opacity: 0.9;
}

.breadcrumb {
    padding: 8px 20px;
    font-size: 13px;
    color: #777;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 6px;
    color: #aaa;
}

.breadcrumb-current {
    color: #999;
}




/* ===== Footer ===== */

footer {
    margin-top: 40px;
    padding: 10px 10px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Message boxes ===== */

.message-box {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.message-success {
    color: #1e7e34;
    background: #e6f4ea;
    border: 1px solid #c3e6cb;
}

.message-error {
    color: #a94442;
    background: #fdecea;
    border: 1px solid #f5c6cb;
}

.dashboard-section {
    margin-top: 40px;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.admin-card {
    display: block;
    padding: 20px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.admin-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.admin-card-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-card-desc {
    font-size: 13px;
    color: #666;
}

.admin-card-section-link {
    text-decoration: none;
    color: #111111;
}