/* style.css - Decision App Styles */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.welcome-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.welcome-content h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.welcome-content p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin: 0 0 25px 0;
}

.welcome-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.welcome-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

.welcome-btn.active {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e1e8ed;
    padding: 15px 0;
    margin-bottom: 30px;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    z-index: 1001;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 220px;
    vertical-align: middle;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav > a {
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.main-nav > a:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.user-menu {
    position: relative;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.user-menu:hover {
    background: #f8f9fa;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    padding: 10px 0;
    min-width: 150px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 5px;
    z-index: 1000;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #f5f7fa;
}

/* Hamburger Menu */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid #e1e8ed;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    color: #666;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    color: #1a1a1a;
}

.back-link {
    display: inline-block;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    text-decoration: none;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-draft { background: #e0e0e0; color: #666; }
.badge-collecting { background: #d4edda; color: #155724; }
.badge-locked { background: #fff3cd; color: #856404; }
.badge-selected { background: #d1ecf1; color: #0c5460; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-invited { background: #e0e0e0; color: #666; }
.badge-viewed { background: #cfe2ff; color: #084298; }
.badge-submitted { background: #d1e7dd; color: #0f5132; }
.badge-revoked { background: #f8d7da; color: #721c24; }

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.form-large {
    max-width: 800px;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.auth-box {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.auth-box h1 {
    text-align: center;
    color: #007bff;
    margin-bottom: 10px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* Decisions Grid */
.decisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Ready to Lock Section */
.ready-to-lock-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15);
}

.ready-to-lock-section .section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.ready-to-lock-section .section-header h2 {
    font-size: 24px;
    color: #0c4a6e;
    margin: 0;
    font-weight: 700;
}

.ready-to-lock-section .section-description {
    color: #0369a1;
    margin: 0 0 25px 0;
    font-size: 15px;
}

.ready-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.ready-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid #38bdf8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ready-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
}

.ready-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
    border-color: #0ea5e9;
}

.ready-card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: start;
}

.ready-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.ready-title-group {
    flex: 1;
    min-width: 0;
}

.ready-card h3 {
    font-size: 18px;
    color: #0c4a6e;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.ready-description {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.ready-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.ready-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ready-stat .stat-icon {
    font-size: 20px;
}

.ready-stat strong {
    display: block;
    font-size: 18px;
    color: #0c4a6e;
    line-height: 1;
}

.ready-stat small {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.ready-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ready-actions .btn-block {
    width: 100%;
    justify-content: center;
    font-weight: 600;
}

.ready-actions .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ready-actions .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.ready-actions .btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.ready-actions .btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Decisions Grid */
.decisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.decision-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.decision-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.decision-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.decision-header h3 {
    margin: 0;
    font-size: 18px;
}

.decision-header h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.decision-header h3 a:hover {
    color: #007bff;
}

.decision-description {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.decision-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    font-size: 13px;
    color: #666;
}

.decision-meta {
    font-size: 12px;
    color: #999;
    margin: 10px 0;
}

.decision-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state h2 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}

/* Search and Filter Section */
.search-filter-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    min-height: 50px;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.search-box .btn {
    min-height: 50px;
    padding: 14px 24px;
    font-size: 16px;
    white-space: nowrap;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 24px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border: 2px solid transparent;
    min-height: 44px;
}

.filter-tab:hover {
    background: #e9ecef;
    text-decoration: none;
    transform: translateY(-1px);
}

.filter-tab.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.filter-tab .count {
    background: rgba(0,0,0,0.1);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.filter-tab.active .count {
    background: rgba(255,255,255,0.3);
}

.results-summary {
    background: #e3f2fd;
    padding: 15px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.results-summary p {
    margin: 0;
    color: #01579b;
    font-size: 15px;
}

.results-summary strong {
    color: #01579b;
    font-weight: 600;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Options List */
.options-list {
    display: grid;
    gap: 10px;
}

.option-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.option-item strong {
    display: block;
    margin-bottom: 5px;
}

.option-item p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.option-item small {
    color: #999;
    font-size: 12px;
}

/* Ranking List */
.ranking-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: move;
    transition: all 0.2s;
}

.ranking-item:hover {
    background: #e9ecef;
}

.ranking-item.submitted {
    cursor: default;
}

.drag-handle {
    font-size: 18px;
    color: #999;
    cursor: grab;
}

.rank-number,
.medal {
    font-size: 20px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.ranking-content {
    flex: 1;
}

.ranking-content strong {
    display: block;
    margin-bottom: 5px;
}

.ranking-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Results Page */
.results-page {
    max-width: 900px;
}

.winner-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 40px;
    position: relative;
}

.winner-badge {
    font-size: 48px;
    margin-bottom: 10px;
}

.winner-card h2 {
    font-size: 32px;
    margin: 10px 0;
}

.winner-card p {
    font-size: 16px;
    opacity: 0.9;
}

.winner-score {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

.rankings-list {
    display: grid;
    gap: 12px;
}

.ranking-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.ranking-row.winner-row {
    background: linear-gradient(90deg, #fff3cd 0%, #f8f9fa 100%);
    border: 2px solid #ffc107;
}

.ranking-row .rank {
    min-width: 50px;
    text-align: center;
}

.ranking-row .medal {
    font-size: 28px;
}

.ranking-row .option-info {
    flex: 1;
}

.ranking-row .option-info strong {
    display: block;
    margin-bottom: 5px;
}

.ranking-row .option-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.ranking-row .option-score {
    font-weight: bold;
    color: #007bff;
    min-width: 60px;
    text-align: right;
}

/* Utilities */
.text-muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}

/* Audit Log Styles */
.audit-section {
    margin-top: 30px;
}

.audit-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.audit-table {
    font-size: 13px;
}

.audit-table th {
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.audit-table td {
    vertical-align: top;
}

.time-cell {
    min-width: 160px;
}

.time-full {
    font-weight: 500;
    color: #333;
}

.time-relative {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.action-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.action-decision-created,
.action-decision-updated { background: #e3f2fd; color: #1565c0; }

.action-decision-started,
.action-participant-added { background: #e8f5e9; color: #2e7d32; }

.action-option-added { background: #fff3e0; color: #ef6c00; }

.action-rankings-submitted { background: #f3e5f5; color: #6a1b9a; }

.action-decision-selected { background: #c8e6c9; color: #1b5e20; }

.action-user-registered,
.action-user-login { background: #e1f5fe; color: #01579b; }

.action-email-verified,
.action-password-reset { background: #fce4ec; color: #880e4f; }

.action-login-failed { background: #ffebee; color: #c62828; }

.details-cell {
    max-width: 300px;
    font-size: 12px;
}

.details-json {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.details-json div {
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 3px;
}

.details-json strong {
    color: #495057;
    font-size: 11px;
}

.user-cell {
    min-width: 180px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info strong {
    color: #007bff;
    font-size: 12px;
}

.user-meta {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.ip-cell {
    font-family: 'Monaco', 'Courier New', monospace;
}

.ip-cell code {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #495057;
}

/* Print Styles */
@media print {
    .audit-table {
        font-size: 10px;
    }
    
    .time-relative {
        display: none;
    }
    
    .audit-table th,
    .audit-table td {
        padding: 8px 6px;
    }
}

/* Profile Page */
.profile-page {
    max-width: 1200px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    align-items: start;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card {
    text-align: center;
}

.profile-avatar {
    margin-bottom: 20px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-card h3 {
    margin: 10px 0 5px 0;
    font-size: 24px;
    color: #1a1a1a;
}

.profile-email {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    word-break: break-all;
}

.verification-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.verification-badge.verified {
    background: #d4edda;
    color: #155724;
}

.verification-badge.unverified {
    background: #fff3cd;
    color: #856404;
}

.profile-meta {
    text-align: left;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.profile-meta p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.profile-meta strong {
    color: #333;
}

.stats-card h4 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 18px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-icon {
    font-size: 28px;
    width: 40px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.danger-zone {
    border: 2px solid #dc3545;
    background: #fff5f5;
}

.danger-zone h3 {
    color: #dc3545;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e1e8ed;
}

.modal-header h3 {
    margin: 0;
    color: #dc3545;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    /* Welcome Banner Mobile */
    .welcome-banner {
        padding: 30px 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .welcome-content h2 {
        font-size: 24px;
    }
    
    .welcome-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .welcome-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .welcome-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    /* Mobile Header */
    .site-header {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo img {
        height: 35px;
        max-width: 160px;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 0 20px 0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav > a {
        width: 100%;
        padding: 15px 25px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .user-menu {
        width: 100%;
        padding: 0;
        border-radius: 0;
    }
    
    .user-menu > span {
        display: block;
        width: 100%;
        padding: 15px 25px;
        border-bottom: 1px solid #f0f0f0;
        font-weight: 500;
    }
    
    .user-menu:hover {
        background: none;
    }
    
    .dropdown-menu {
        position: static;
        display: block;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: #f8f9fa;
    }
    
    .dropdown-menu a {
        padding: 12px 25px 12px 40px;
        border-bottom: 1px solid #e1e8ed;
    }
    
    .mobile-nav-overlay {
        display: block;
    }
    
    .mobile-nav-overlay.active {
        display: block;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .decisions-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .decision-actions,
    .form-actions {
        flex-direction: column;
    }
    
    .btn-block {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Search and Filter Responsive */
    .search-filter-section {
        padding: 15px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-box .btn {
        width: 100%;
    }
    
    .filter-tabs {
        justify-content: flex-start;
    }
    
    .filter-tab {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .results-summary {
        padding: 10px 15px;
    }
    
    /* Ready to Lock Section Mobile */
    .ready-to-lock-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .ready-to-lock-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ready-to-lock-section .section-header h2 {
        font-size: 20px;
    }
    
    .ready-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .ready-card {
        padding: 15px;
    }
    
    .ready-card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .ready-icon {
        font-size: 28px;
    }
    
    .ready-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .ready-stat {
        justify-content: flex-start;
    }
    
    /* Profile Page Responsive */
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-content {
        order: 1;
    }
    
    .avatar-circle {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }
    
    .stat-item {
        padding: 10px 0;
    }
    
    .stat-icon {
        font-size: 24px;
        width: 35px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .modal-content {
        margin: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    /* Use Cases Page Mobile */
    .usecases-hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .usecases-intro p {
        font-size: 16px;
    }
    
    .usecases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .usecase-card {
        padding: 30px 20px;
    }
    
    .usecase-icon {
        font-size: 42px;
    }
    
    .usecase-card h2 {
        font-size: 24px;
    }
    
    .how-it-works-section {
        padding: 40px 20px;
    }
    
    .how-it-works-section h2,
    .benefits-section h2,
    .cta-section h2 {
        font-size: 28px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-lg {
        width: 100%;
    }
}

/* Tablet Breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-nav {
        gap: 12px;
    }
    
    .main-nav > a {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .user-menu {
        font-size: 14px;
    }
}