/* --- General Body & Typography --- */
:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f4f7f6;
    --white-color: #ffffff;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--light-bg);
    color: var(--dark-text);
}
.container { width: 90%; max-width: 1200px; margin: auto; overflow: hidden; padding: 20px 0; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* --- Header & Navigation --- */
header { 
    background: var(--white-color); 
    border-bottom: 3px solid var(--primary-color); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
header #branding h1 a { color: var(--dark-text); font-size: 24px; text-decoration: none; }
header .highlight { color: var(--primary-color); }
header nav .nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 20px; }
header nav a { color: var(--dark-text); text-transform: uppercase; font-size: 16px; font-weight: 500; }
header nav .button-register { background: var(--primary-color); color: var(--white-color); padding: 8px 15px; border-radius: 5px; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark-text); }

/* --- Auth Pages (Login/Register) --- */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.auth-form { background: var(--white-color); padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 400px; text-align: center; }
.auth-form h2 { margin-bottom: 10px; }
.auth-form p { margin-bottom: 25px; color: var(--light-text); }
.auth-form label { display: block; text-align: left; margin-bottom: 5px; font-weight: 600; }
.auth-switch { margin-top: 20px; }

/* --- General Content Blocks --- */
.user-info, .task-list, .site-notice, .live-proof-list { background: #fff; padding: 25px; margin-bottom: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }

/* --- Site Notice --- */
.site-notice { border-left: 5px solid var(--primary-color); }

/* --- Task Items --- */
.task-item { border-bottom: 1px solid var(--border-color); padding: 20px 10px; display: flex; justify-content: space-between; align-items: center; transition: background-color 0.2s; }
.task-item:last-child { border-bottom: none; }
.task-item:hover { background-color: #f9f9f9; }
.task-item h3 { margin: 0 0 5px 0; }
.task-item .price { font-weight: bold; color: var(--success-color); }
.task-item button { background: var(--primary-color); color: white; padding: 10px 18px; border: none; cursor: pointer; border-radius: 5px; }

/* --- Buttons --- */
button, .button { display: inline-block; border: none; padding: 12px 25px; color: #fff; background: var(--success-color); cursor: pointer; border-radius: 5px; font-size: 1em; text-align: center; }
.button-proof { background: var(--primary-color); padding: 8px 15px; border-radius: 5px; color: white; }

/* --- Forms --- */
form label { display: block; margin-bottom: 8px; font-weight: 600; }
form input, form textarea, form select { width: 100%; padding: 12px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; }
form button { width: 100%; }

/* --- Live Proof Table --- */
.scrollable-table { max-height: 600px; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 5px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px; border-bottom: 1px solid var(--border-color); text-align: left; }
th { background-color: #f2f5f7; }

/* --- Rejection Feed --- */
.rejection-container { max-width: 900px; margin: 20px auto; padding: 15px; }
.rejection-item { background: #fff; border: 1px solid #ddd; border-left: 5px solid var(--danger-color); border-radius: 5px; padding: 1.5rem; margin-bottom: 1.5rem; display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; align-items: start; }
.rejection-item .rejection-image img { width: 100%; max-width: 300px; height: auto; border-radius: 5px; cursor: zoom-in; }
.rejection-details h3 { margin-top: 0; }

/* --- Modal --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); overflow-y: auto; }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 30px; border-radius: 8px; width: 90%; max-width: 600px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); position: relative; }
.close-button { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.image-modal { display: none; position: fixed; z-index: 1001; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.modal-content img.modal-content { margin: auto; display: block; width: 80%; max-width: 700px; }
.close-modal { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; }
.task-step { text-align: center; }

/* New Modal Button Styles */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Spacing between buttons */
    margin-top: 20px;
}
.modal-buttons .button {
    background-color: var(--success-color);
}
.translate-btn {
    background: #eee;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
}
.message { padding: 15px; margin-bottom: 20px; border-radius: 5px; border: 1px solid transparent; }
.message.success { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.message.error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* --- Responsive Design --- */
@media(max-width: 768px) {
    .container { width: 95%; }
    .menu-toggle { display: block; }
    header nav .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 73px; /* Header height */
        left: 0;
        width: 100%;
        background: var(--white-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 998;
    }
    header nav .nav-menu.active { display: flex; }
    header nav .nav-menu li { width: 100%; text-align: center; }
    header nav .nav-menu li a { display: block; padding: 15px; border-bottom: 1px solid var(--border-color); }
    
    .rejection-item { grid-template-columns: 1fr; }
    
    /* Responsive table */
    table, thead, tbody, th, td, tr { display: block; }
    table thead tr { position: absolute; top: -9999px; left: -9999px; }
    table tr { border: 1px solid #ccc; margin-bottom: 10px; }
    table td { border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; text-align: right; min-height: 25px; }
    table td:before { position: absolute; top: 50%; transform: translateY(-50%); left: 15px; width: 45%; padding-right: 10px; white-space: nowrap; font-weight: bold; content: attr(data-label); text-align: left; }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .task-item button {
        width: 100%;
    }
}