/* Base styles for Nobodies Profiles */

:root {
    --color-primary: #2c3e50;
    --color-secondary: #3498db;
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-danger: #e74c3c;
    --color-light: #ecf0f1;
    --color-dark: #2c3e50;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
}

header .nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

header .nav-links a {
    color: white;
    text-decoration: none;
}

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

/* Main content */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.2s;
}

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

.btn-primary:hover {
    background-color: #2980b9;
}

/* Messages */
.messages {
    margin-bottom: 1rem;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Footer */
footer {
    background-color: var(--color-light);
    padding: 1rem;
    text-align: center;
    margin-top: auto;
}

/* Forms */
form {
    max-width: 400px;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-secondary);
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Cards */
.card, .status-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h2, .status-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Status badges */
.status-badge, .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-secondary { background: #6c757d; color: white; }
.badge-warning { background: #ffc107; color: #212529; }
.badge-success { background: #28a745; color: white; }
.badge-danger { background: #dc3545; color: white; }
.badge-info { background: #17a2b8; color: white; }

/* Status card variants */
.status-card.status-none { border-left: 4px solid #6c757d; }
.status-card.status-pending { border-left: 4px solid #ffc107; }
.status-card.status-approved_pending_documents { border-left: 4px solid #17a2b8; }
.status-card.status-active { border-left: 4px solid #28a745; }
.status-card.status-restricted { border-left: 4px solid #ffc107; }
.status-card.status-expired { border-left: 4px solid #dc3545; }
.status-card.status-removed { border-left: 4px solid #dc3545; }

/* Definition lists */
dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

dt {
    font-weight: 600;
    color: #666;
}

dd {
    margin: 0;
}

/* Application form */
.application-form fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.application-form legend {
    font-weight: 600;
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .half {
    flex: 1;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.radio-label:hover {
    background: #f8f9fa;
}

.consent-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.consent-text {
    display: block;
    margin-top: 0.5rem;
    color: #666;
}

.field-error {
    color: var(--color-danger);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

.form-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* Home page */
.home-page .hero {
    text-align: center;
    padding: 2rem 0;
}

.home-page .tagline {
    font-size: 1.25rem;
    color: #666;
}

.welcome-box {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.info-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* Secondary button */
.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

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

.btn-danger-outline:hover {
    background: var(--color-danger);
    color: white;
}

/* Navigation improvements */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.user-name {
    color: rgba(255,255,255,0.8);
}

/* Success message page */
.success-message {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-message h1 {
    color: var(--color-success);
}

.success-message .lead {
    font-size: 1.1rem;
    color: #666;
}

.application-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

.next-steps {
    text-align: left;
    margin: 2rem 0;
}

.next-steps ol {
    padding-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 0.5rem;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* GDPR section */
.gdpr-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.text-muted {
    color: #6c757d;
}

/* Expiry info */
.expiry-info {
    color: #666;
    font-size: 0.9rem;
}

/* Documents */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.document-card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.document-meta {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.document-description {
    color: #555;
    margin-bottom: 0.5rem;
}

.deadline-warning {
    color: var(--color-warning);
    font-weight: 500;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.document-view .document-header {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.lang-option {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-primary);
}

.lang-option.active {
    background: var(--color-primary);
    color: white;
}

.translation-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.translation-warning a {
    display: inline-block;
    margin-top: 0.5rem;
}

.document-content {
    background: white;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    line-height: 1.8;
}

.document-content h1,
.document-content h2,
.document-content h3 {
    margin-top: 1.5rem;
}

.document-content ul,
.document-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.already-signed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #d4edda;
    border-radius: 4px;
}

/* Consent form */
.consent-page .consent-notice {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.consent-page .consent-notice h3 {
    margin-top: 0;
}

.consent-page .consent-notice ul {
    margin-bottom: 1rem;
}

.consent-checkbox-container {
    background: white;
    border: 2px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
}

.consent-text {
    flex: 1;
    line-height: 1.5;
}

/* Consent history */
.consent-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.consent-history-table th,
.consent-history-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.consent-history-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.consent-history-table tr.inactive {
    opacity: 0.6;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.no-documents {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
}
