/* Main CSS - Clean & Minimal Base Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

p {
    color: #666666;
    line-height: 1.6;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Clean Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    outline: none;
    white-space: nowrap;
}

.btn:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.btn-primary:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-primary:disabled {
    background-color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #ffffff;
    color: #333333;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.btn-danger {
    background-color: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.btn-danger:disabled {
    background-color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: #ffffff;
    transition: border-color 0.15s ease;
}

input:focus,
textarea:focus,
.form-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 1px #000000;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-content p {
    margin-top: 16px;
    color: #666666;
    font-size: 14px;
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Inline spinner for buttons */
.btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin: 0;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.btn-primary .spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
}

.btn-secondary .spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: #333333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error and Success Messages */
.error-message,
.success-message,
.info-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.error-message {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.success-message {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.info-message {
    background-color: #f0f9ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 300px;
    max-width: 100%;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(400px);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    flex-shrink: 0;
}

.toast-message {
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.toast-close:hover {
    color: #666666;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* Homepage Styles */
.homepage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding: 24px;
    position: relative;
}

.homepage-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.homepage-header {
    margin-bottom: 48px;
}

.homepage-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: block;
}

.homepage-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.homepage-tagline {
    font-size: 20px;
    color: #666666;
    margin: 0;
}

.homepage-content {
    margin-top: 64px;
}

.homepage-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.feature-item {
    padding: 24px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.homepage-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
}

.homepage-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    text-align: center;
    font-size: 13px;
    color: #666666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.homepage-footer a {
    color: #666666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.homepage-footer a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.homepage-footer span {
    color: #666666;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #1a1a1a;
}

.footer-separator {
    color: #d1d5db;
    font-size: 13px;
}

.auth-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-footer .footer-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666666;
}

.auth-footer a {
    color: #666666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-footer a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.auth-footer span {
    color: #666666;
}

.auth-footer p {
    font-size: 13px;
    color: #666666;
    margin: 12px 0 0 0;
}

.auth-footer .footer-links {
    margin-bottom: 8px;
}

/* App Footer (for dashboard and other pages) */
.app-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.app-footer .footer-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666666;
}

.app-footer a {
    color: #666666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.app-footer a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.app-footer span {
    color: #666666;
}

.app-footer .footer-links {
    margin-bottom: 12px;
}

.app-footer p {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #666666;
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.15s ease;
}

.back-button:hover {
    color: #1a1a1a;
}

.auth-container {
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
    h3 { font-size: 16px; }

    .toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    .homepage-header h1 {
        font-size: 36px;
    }

    .homepage-tagline {
        font-size: 18px;
    }

    .homepage-features {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }

    .homepage-cta {
        flex-direction: column;
    }

    .homepage-cta .btn {
        width: 100%;
    }
} 