/* ================================
   AGSKADS Planner – Core UI Polish
   Pure CSS | No logic | Safe
================================ */

/* ---------- Global ---------- */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", DejaVu Sans, Roboto, Arial, sans-serif;
    background: #f6f7fb;
    color: #222;
}


a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------- Page Containers ---------- */
.container,
.main,
.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ---------- Tables ---------- */
table {
    width: 70%;
    margin: 20px auto;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Table headers */
table th {
    background: #098042;
    /* dark slate */
    color: #fbbf24;
    font-weight: 600;
    padding: 12px 14px;
    text-align: left;
    font-size: 18px;
}

/* Table cells */
table td {
    padding: 12px 14px;
    font-size: 16px;
    border-bottom: 2px solid #fbbf24;
}

/* Zebra rows */
table tr:nth-child(even) td {
    background: #f9fafb;
}

/* Hover effect */
table tr:hover td {
    background: #97fdb9;
    transition: background 0.5s ease;
}

/* ---------- Buttons ---------- */
button,
input[type="submit"],
input[type="button"] {
    background: #098042;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover,
input[type="submit"]:hover {
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ---------- Links as actions ---------- */
.action-link {
    font-weight: 500;
    margin-right: 8px;
}

/* ---------- Notices & Instructions ---------- */
.notice,
.warning,
.info {
    width: 70%;
    margin: 20px auto;
    padding: 14px 18px;
    border-radius: 6px;
    font-weight: 600;
}

/* Info */
.info {
    background: #eef2ff;
    color: #1e40af;
}

/* Warning */
.warning {
    background: #fff7ed;
    color: #9a3412;
}

/* Success */
.success {
    background: #ecfdf5;
    color: #26dda9;
}

/* ---------- Forms ---------- */
form {
    width: 70%;
    margin: 20px auto;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ---------- Headings ---------- */
h1,
h2,
h3 {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #111827;
}

/* ---------- Nav polish (if applicable) ---------- */

/* ---------- Main Nav Layout ---------- */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #098042;
    padding: 10px 10px 10px 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Left & Right sections */
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-right a {
    color: #ffffff;
    margin-left: 18px;
    font-weight: 500;
    font-size: 15px;
}

.nav-right a:hover {
    text-decoration: underline;
}


nav {
    background: #098042;
    padding: 12px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

nav a {
    color: #ffffff;
    margin-right: 14px;
    font-weight: 500;
}

nav a:hover {
    color: #ffffff;
}

/* Logo */
.brand-logo img {
    background-color: #ffffff;
    border-radius: 50pc;
    height: 100px;
    width: 100px;
    display: block;
}

/* ---------- Subtle animation helpers ---------- */
.fade-in {
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Accessibility ---------- */
button:focus,
a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.bucket-header {
    border: 1px solid #ddd;
    padding: 16px;
    margin-bottom: 20px;
    background: #fafafa;
}

.bucket-header-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bucket-budget-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.bucket-budget-row .label {
    display: block;
    color: #666;
    font-size: 13px;
}

.bucket-budget-row .value {
    font-weight: bold;
}

.success {
    color: green;
}

.danger {
    color: red;
}

.bucket-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.btn-primary {
    padding: 6px 12px;
    background: #0057ff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.bucket-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.bucket-table th,
.bucket-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.bucket-table th {
    background: #f0f0f0;
}

.bucket-table .empty {
    text-align: center;
    color: #777;
}

.locked,
.locked-note {
    color: #999;
}

.bucket-info,
.bucket-features {
    margin-top: 25px;
    padding: 14px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

/* Planner Header */
.planner-header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 16px;
    padding-bottom: 10px;
}

.planner-campaign-name {
    margin: 0;
    font-size: 22px;
}

.planner-version-line {
    font-size: 14px;
    color: #555;
    margin-top: 4px;
}

.planner-lock-badge {
    background: #c0392b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.planner-open-badge {
    background: #27ae60;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

/* Warnings */
.planner-warnings {
    background: #fff6e5;
    border: 1px solid #f0c36d;
    padding: 10px;
    margin-bottom: 15px;
}

.planner-warnings ul {
    margin: 0;
    padding-left: 18px;
}

/* Instructions */
.planner-instructions {
    margin-top: 25px;
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #3498db;
}

.planner-instructions h3,
.planner-instructions h4 {
    margin-top: 0;
}

canvas {
    max-width: 600px;
    margin: 16px 0;
}

h3 {
    margin-top: 28px;
}


.budget-strip {
    max-width: 900px;
    margin: 20px auto 30px;
    display: flex;
    
    justify-content: space-between;
    
}

.budget-card {
    
    width: 33%;
    height: 80px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.budget-card.warning {
    background: #fff7ed;
    width: 33%;
    height: 80px;
    padding: 14px 10px;
    border-color: #f0c36d;
}

.budget-card.success {
    background: #ecfdf5;
    width: 33%;
    height: 80px;
    padding: 14px 10px;
    border-color: #86efac;
}

.budget-card .label {
    font-size: 16px;
    color: #666;
    margin-bottom: 6px;
}

.budget-card .value {
    font-size: 20px;
    font-weight: bold;
}



.overview-block {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.overview-block h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.overview-block p {
    max-width: 600px;
    color: #555;
    margin-bottom: 14px;
}

.overview-shot {
    max-width: 720px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    filter: blur(2px);
}

.overview-icon {
    font-size: 26px;
    margin-bottom: 6px;
}

/* =========================
   SETTINGS LAYOUT
========================= */

.settings-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 30px;
}

/* Sidebar */
.settings-sidebar {
    width: 240px;
    background: #f4f6f9;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.settings-sidebar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.settings-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.settings-sidebar a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
}

.settings-sidebar li.active a,
.settings-sidebar a:hover {
    background-color: #098042;
    color: #fff;
}

/* Content Area */
.settings-content {
    flex: 1;
}

/* Card */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

/* Form */
.form-group {
    margin-bottom: 15px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-note {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

.btn-primary {
    background: #098042;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e9c10d;
}

.welcome-bar {
    padding: 12px 20px;
    background: #f5f7fa;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.breadcrumb {
    font-size: 13px;
    margin: 10px 0 20px;
    color: #6b7280;
}

.context-bar {
    display: flex;
    gap: 30px;
    background: #f8fafc;
    padding: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.context-item {
    font-size: 14px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-draft {
    background: #e5e7eb;
    color: #374151;
}

.badge-submitted {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-approved {
    background: #dcfce7;
    color: #166534;
}

.badge-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.workflow-nav {
    margin-bottom: 15px;
}

.context-bar{
display:flex;
gap:40px;
padding:12px;
background:#f4f6fa;
border-radius:6px;
margin-bottom:20px;
}

.badge{
padding:4px 8px;
border-radius:4px;
font-size:12px;
font-weight:600;
}

.badge-gray{ background:#ddd; }
.badge-blue{ background:#2f6fed;color:white; }
.badge-green{ background:#2fa84f;color:white; }
.badge-red{ background:#d63c3c;color:white; }

.workflow-nav{
display:flex;
justify-content:space-between;
margin:20px 0;
}

.btn-back{
background:#098042;
  color:#ffffff;
padding:8px 12px;
text-decoration:none;
}

.btn-next{
background:#098042;
color:white;
padding:8px 12px;
text-decoration:none;
}
