* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f0f4f8;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #e8edf3;
    margin-bottom: 30px;
}

header h1 {
    color: #1a3a5c;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #5a7a9a;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8edf3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #2c6b9e;
    box-shadow: 0 12px 30px rgba(44, 107, 158, 0.12);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 1.25rem;
    color: #1a3a5c;
    margin-bottom: 10px;
}

.card p {
    color: #5a7a9a;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.badge {
    background: #e8edf3;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #1a3a5c;
    font-weight: 600;
}

/* Admin Table */
.admin-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e8edf3;
}

.admin-section h3 {
    color: #1a3a5c;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th {
    background: #f7f9fc;
    text-align: left;
    padding: 12px 15px;
    color: #1a3a5c;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #edf2f7;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.status-approved {
    background: #d4edda;
    color: #155724;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 6px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.2s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #2c6b9e;
    box-shadow: 0 0 0 3px rgba(44, 107, 158, 0.1);
}

.file-upload {
    border: 2px dashed #dce4ec;
    padding: 20px;
    border-radius: 10px;
    background: #fafcfe;
    text-align: center;
}

.file-upload input[type="file"] {
    padding: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2c6b9e;
}

.btn-submit {
    background: #1a3a5c;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #2c6b9e;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #2c6b9e;
    text-decoration: none;
}

/* Notice Box - предупреждение */
.notice-box {
    background: #fef9e7;
    border-left: 5px solid #f39c12;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.notice-box p {
    color: #5a4a2a;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.notice-box strong {
    color: #2c3e50;
}

.notice-link {
    color: #1a3a5c;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 18px;
    background: white;
    border-radius: 8px;
    border: 1px solid #1a3a5c;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.notice-link:hover {
    background: #1a3a5c;
    color: white;
    transform: scale(1.02);
}

/* Samples Box - образцы заявлений */
.samples-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f8faff;
    padding: 18px 25px;
    border-radius: 12px;
    border: 1px solid #e8edf3;
    margin-bottom: 35px;
}

.sample-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
}

.sample-icon {
    font-size: 1.3rem;
}

.sample-item a {
    color: #1a3a5c;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #b0c4d8;
    padding-bottom: 2px;
    transition: border-color 0.2s;
}

.sample-item a:hover {
    border-bottom-color: #1a3a5c;
    color: #2c6b9e;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .notice-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }
    
    .notice-link {
        white-space: normal;
        width: 100%;
        text-align: center;
    }
    
    .samples-box {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }
}