/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Common Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-small { margin-bottom: 0.5rem; }
.mb-medium { margin-bottom: 1rem; }
.mb-large { margin-bottom: 2rem; }

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.welcome-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    margin-bottom: 2.5rem;
}

.big-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.welcome-card h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.welcome-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.simple-login-form {
    text-align: left;
}

.input-section {
    margin-bottom: 1.5rem;
}

.input-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1rem;
}

.input-section input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-section input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-section small {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.big-login-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem 0;
}

.big-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.help-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e8ed;
}

.help-section details {
    cursor: pointer;
}

.help-section summary {
    color: #667eea;
    font-weight: 500;
    padding: 0.5rem 0;
}

.help-section p {
    color: #7f8c8d;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Dashboard Layout */
.dashboard-container {
    min-height: 100vh;
    background: #f5f7fa;
}

.top-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-mini {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
}

.welcome-user {
    color: #7f8c8d;
    font-size: 1rem;
}

.nav-right {
    display: flex;
    gap: 1rem;
}

.help-button, .logout-button {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.help-button:hover {
    border-color: #667eea;
    color: #667eea;
}

.logout-button:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Main Menu */
.main-menu h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.action-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.action-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.action-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.action-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #667eea;
    opacity: 0;
    transition: all 0.3s ease;
}

.action-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.download-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-card h3,
.download-card p {
    color: white;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.download-link:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.back-button {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.back-button:hover {
    background: #e1e8ed;
    border-color: #d1d9e0;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Quick Guide */
.quick-guide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.quick-guide h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.step {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Buttons */
.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: #667eea;
    color: white;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.action-button.secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e1e8ed;
}

.action-button.secondary:hover {
    background: #e1e8ed;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.action-button.sync {
    background: #27ae60;
}

.action-button.sync:hover {
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.action-button.cancel {
    background: #95a5a6;
}

.action-button.cancel:hover {
    background: #7f8c8d;
}

.create-user-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 2rem 0;
}

.create-user-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

/* Wizard Styles */
.wizard {
    max-width: 800px;
    margin: 0 auto;
}

.wizard-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e1e8ed;
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    width: 25%;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.step-content {
    max-width: 600px;
    margin: 0 auto;
}

.step-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-explanation {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Forms */
.simple-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1rem;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row small {
    display: block;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.big-select {
    padding: 1.2rem !important;
    font-size: 1rem !important;
    font-weight: 500;
}

/* Setting Cards */
.setting-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid #e1e8ed;
    transition: all 0.3s ease;
}

.setting-card:hover {
    border-color: #667eea;
    background: #f0f3ff;
}

.setting-header {
    margin-bottom: 1rem;
}

.setting-header strong {
    color: #2c3e50;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.2rem;
}

.setting-header small {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.feature-card {
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.feature-card.recommended {
    border-color: #27ae60;
    background: #f8fff9;
}

.feature-card.recommended:hover {
    border-color: #27ae60;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.1);
}

.feature-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.feature-header input[type="checkbox"] {
    margin: 0.2rem 0 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.feature-header strong {
    color: #2c3e50;
    font-size: 1rem;
    flex: 1;
}

.recommended-badge {
    background: #27ae60;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    position: absolute;
    top: -0.2rem;
    right: 0;
}

.feature-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-left: 1.5rem;
}

/* Summary */
.summary-card {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.final-actions {
    text-align: center;
}

.action-info h4 {
    color: #27ae60;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.action-info p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.action-info ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e1e8ed;
}

.action-info li {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f8f9fa;
}

.nav-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button.primary {
    background: #667eea;
    color: white;
}

.nav-button.primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.nav-button.secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e1e8ed;
}

.nav-button.secondary:hover:not(:disabled) {
    background: #e1e8ed;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button.create {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
}

.nav-button.create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

.step-indicator {
    color: #7f8c8d;
    font-weight: 500;
}

/* Tables */
.simple-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid #e1e8ed;
}

.simple-table table {
    width: 100%;
    border-collapse: collapse;
}

.simple-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e1e8ed;
}

.simple-table td {
    padding: 1rem;
    border-bottom: 1px solid #e1e8ed;
    color: #2c3e50;
}

.simple-table tr:hover {
    background: #f8f9fa;
}

.simple-table tr:last-child td {
    border-bottom: none;
}

/* Search */
.search-container {
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Phonebook */
.phonebook-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.phonebook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.contact-card {
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.contact-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.contact-number {
    font-size: 1rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid #e1e8ed;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #f8f9fa;
}

.contact-btn.call {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.contact-btn.call:hover {
    background: #229954;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.setting-card.large {
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    padding: 2rem;
}

.setting-card.large h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.setting-card.large > p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
}

.close-modal:hover {
    color: #e74c3c;
    background: #ffe6e6;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content > p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Preview Section */
.preview-section {
    background: #f8f9fa;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.preview-summary {
    background: #667eea;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.preview-list {
    max-height: 200px;
    overflow-y: auto;
}

.preview-entry {
    background: white;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 4px solid #667eea;
}

.preview-more {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 1rem;
}

/* Help */
.help-sections {
    display: grid;
    gap: 1.5rem;
}

.help-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
}

.help-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.help-section ul {
    list-style: none;
    padding: 0;
}

.help-section li {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.help-section li::before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

    .welcome-card {
        padding: 2rem 1.5rem;
    }

    .top-nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-right {
        justify-content: center;
    }

    .wizard-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .step-indicator {
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .phonebook-actions {
        flex-direction: column;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .welcome-card {
        padding: 1.5rem 1rem;
    }

    .big-logo {
        font-size: 3rem;
    }

    .welcome-card h1 {
        font-size: 1.8rem;
    }

    .steps {
        flex-direction: column;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* Loading States */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.loading-content {
    text-align: center;
    color: #2c3e50;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e1e8ed;
    border-left: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Button Icons */
.button-icon {
    font-size: 1em;
    margin-right: 0.2rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Print styles */
@media print {
    .top-nav,
    .back-button,
    .action-button,
    .wizard-nav {
        display: none !important;
    }

    .main-content {
        margin: 0;
        padding: 0;
    }
}