.caf-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.caf-form-container h2 {
    color: #1a237e;
    margin-bottom: 10px;
    font-weight: 700;
}

.caf-docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .caf-docs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.caf-doc-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.caf-doc-item:hover {
    border-color: #3f51b5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.caf-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.caf-doc-label {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #444;
    max-width: 80%;
}

.caf-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
}

.status-vazio .caf-status-badge { background: #e0e0e0; color: #757575; }
.status-pendente .caf-status-badge { background: #fff8e1; color: #f57f17; }
.status-aprovado .caf-status-badge { background: #e8f5e9; color: #2e7d32; }

.status-aprovado {
    border-left: 5px solid #4caf50;
    background: #f1f8f1;
}

.caf-file-input-wrapper {
    margin-top: auto;
}

.caf-file-input-wrapper input[type="file"] {
    width: 100%;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.caf-file-input-wrapper small {
    display: block;
    color: #777;
    font-size: 0.75rem;
}

.caf-file-list {
    margin: 15px 0 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

.caf-file-list li {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.caf-file-list li a {
    color: #3f51b5;
    text-decoration: none;
}

.caf-file-list li a:hover {
    text-decoration: underline;
}

.caf-approved-msg {
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.caf-form-footer {
    margin-top: 40px;
    text-align: center;
}

.caf-submit-btn {
    background: #1a237e;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.caf-submit-btn:hover {
    background: #3f51b5;
}

.caf-notice {
    padding: 15px;
    background: #fff3e0;
    border-left: 5px solid #ff9800;
    margin: 20px 0;
    border-radius: 4px;
}

/* Login Form Styling */
.caf-login-form {
    margin-top: 20px;
}

.caf-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.caf-login-form input[type="text"],
.caf-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.caf-login-form input[type="submit"] {
    background: #1a237e;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.caf-logout-link a {
    text-decoration: none;
    font-weight: 600;
    color: #d32f2f;
    font-size: 0.9rem;
}
