:root {
    --primary-color: #f7ca18; /* BRT Yellow */
    --primary-hover: #e0b615;
    --bg-color: #f4f4f9;
    --card-bg: #ffffff;
    --text-main: #000000; /* BRT Black */
    --text-secondary: #555555;
    --border-radius: 10px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --input-bg: #f9f9fc;
    --input-border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 15px; /* Reduced for mobile */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px; /* Optimized for mobile/tablet */
}

/* Status Message Styles */
.status-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

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

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    margin-bottom: 25px;
    text-align: center;
}

.logo {
    max-width: 200px;
    height: auto;
    display: inline-block;
    mix-blend-mode: multiply; /* Blends white background of logo with site background */
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.03);
    border-top: 4px solid var(--text-main); /* Black top border for BRT style */
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.grid-2 {
    display: grid;
    /* Forces 1 column on mobile, 2 on larger screens if needed, but keeping 1 for mobile first */
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Optional: if you want side-by-side on very large screens only */
@media (min-width: 480px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.input-group {
    margin-bottom: 12px;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

/* Toggle Buttons for Operation */
.toggle-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.toggle-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(247, 202, 24, 0.3);
}

.toggle-btn:hover:not(.active) {
    background: rgba(0,0,0,0.02);
    border-color: #ccc;
}

input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--text-main);
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
    outline: none;
    border-color: var(--text-main);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

input[type="text"][readonly] {
    background: #eeeeee;
    color: #777;
    cursor: not-allowed;
    border-color: #ddd;
}

.media-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.media-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

/* Progress Bar Styles */
.progress-container {
    display: none;
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    height: 24px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #f7ca18, #f1c40f);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.85rem;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

input[type="file"] {
    flex-grow: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* Important for flex-shrink/ellipsis to work */
}

input[type="file"]::file-selector-button {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin-right: 10px;
    transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background: #333;
}

.btn-remove {
    background: #ff4d4d;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.form-actions {
    margin-top: 25px;
    margin-bottom: 40px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--text-main);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(247, 202, 24, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    width: 100%; /* Full width for mobile */
    padding: 12px;
    background: transparent;
    color: var(--text-main);
    border: 2px dashed var(--text-main);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(0,0,0,0.02);
    border-color: var(--text-main);
}
