/* sanko_yillik_web/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #005BAC;
    --primary-hover: #00458C;
    --secondary-color: #484848;
    --accent-color: #7E7E7E;
    --bg-color: #F4F6F9;
    --white: #FFFFFF;
    --danger: #E74C3C;
    --success: #2ECC71;
    --border-color: #DDDDDD;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--secondary-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Common Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 91, 172, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 91, 172, 0.4);
}

.btn-success {
    background-color: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: #f1f1f1;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.15);
    outline: none;
}

/* Header */
.navbar {
    background: var(--white);
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-brand img {
    height: 40px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 32px;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Layouts */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 16px;
}

.auth-header p {
    color: var(--accent-color);
    font-size: 14px;
    margin-top: 8px;
}

/* Dashboard Layout */
.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

.page-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.page-title {
    font-size: 28px;
    color: var(--primary-color);
}

.page-subtitle {
    font-size: 15px;
    color: var(--accent-color);
}

/* Editor Section */
.editor-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .editor-wrapper {
        grid-template-columns: 1fr;
    }
}

.char-counter {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 8px;
}

.char-warning {
    color: var(--danger);
}

.upload-zone {
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background-color: #F8FAFC;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background-color: #F1F5F9;
}

.upload-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.approval-card {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    border-left: 4px solid var(--primary-color);
}
