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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: url('background.jpg') center bottom / cover no-repeat fixed;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Fallback gradient if background image doesn't load */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    z-index: -2;
}

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

/* Profile Creation Flow */
.profile-creation-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.jpg') center bottom / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.profile-creation-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.profile-creation-container {
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.profile-creation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-creation-header h1 {
    color: #2c5aa0;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-creation-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.5;
}

.profile-creation-form {
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
}

.form-group h3 {
    margin-bottom: 1rem;
    color: #2c5aa0;
    font-size: 1.2rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a5f 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.jpg') center bottom / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

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

.loading-content .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.loading-content .logo .logo-img {
    width: 70%;
    height: auto;
    max-width: 200px;
    filter: brightness(0) invert(1);
}


.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Authentication Screen */
.auth-screen {
    min-height: 100vh;
    background: url('background.jpg') center bottom / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    position: relative;
}

.auth-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.auth-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
    margin-bottom: 40px;
}

.auth-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.auth-header .logo .logo-img {
    width: 70%;
    height: auto;
    max-width: 150px;
    filter: brightness(0);
}


.auth-header p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.google-btn {
    background: #4285f4;
    color: white;
}

.google-btn:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

.apple-btn {
    background: #000;
    color: white;
}

.apple-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #888;
    font-size: 0.9rem;
}

.email-auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #2c5aa0;
}

.email-btn {
    background: #2c5aa0;
    color: white;
}

.email-btn:hover {
    background: #1e3a5f;
    transform: translateY(-2px);
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.auth-links a {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

.auth-footer p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.download-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.download-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.download-link:hover {
    transform: scale(1.05);
}

.download-badge {
    height: 40px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.download-badge:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main Application */
.main-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-content .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content .logo .logo-img {
    width: 70%;
    height: auto;
    max-width: 180px;
    filter: brightness(0);
}

/* Logo link styles */
.logo a {
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.logo a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.footer-logo a {
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.footer-logo a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Ensure logo images are clickable */
.logo a img,
.footer-logo a img {
    pointer-events: none;
    display: block;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.honor-mode-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.honor-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.user-menu {
    position: relative;
}

.user-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #2c5aa0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-btn:hover {
    color: #1e3a5f;
    transform: scale(1.1);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 150px;
    z-index: 1000;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.user-dropdown a:hover {
    background: #f0f7ff;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 5px 0;
}

/* Tab Navigation */
.tab-navigation {
    background: white;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #2c5aa0;
    background: #f0f7ff;
}

.tab-btn.active {
    color: #2c5aa0;
    border-bottom-color: #2c5aa0;
}

.tab-btn i {
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Home Tab */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.welcome-header {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.welcome-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.welcome-profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
}

.welcome-text {
    text-align: left;
    flex: 1;
    min-width: 300px;
}

.welcome-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.welcome-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* Responsive design for welcome section */
@media (max-width: 640px) {
    .welcome-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-text {
        text-align: center;
        min-width: auto;
    }
    
    .welcome-profile-photo {
        width: 100px;
        height: 100px;
    }
}

.quick-actions {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quick-actions h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: #f0f7ff;
    border: none;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.action-card:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.action-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.action-card span {
    font-weight: 500;
    font-size: 1rem;
}

/* Alive Notification */
.alive-notification {
    margin-bottom: 30px;
}

.alive-card {
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
    border-radius: 16px;
    padding: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.alive-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alive-icon i {
    font-size: 1.8rem;
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.alive-content {
    flex: 1;
}

.alive-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.alive-content p {
    margin: 0 0 15px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.alive-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.alive-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Honor Mode Activated */
.honor-mode-activated {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.honor-mode-card {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 16px;
    padding: 25px;
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.honor-mode-content {
    flex: 1;
}

.honor-mode-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.honor-mode-content p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.honor-mode-actions {
    margin: 20px 0;
    text-align: center;
}

.im-alive-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.im-alive-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.im-alive-btn {
    margin-bottom: 15px;
}

.im-alive-note {
    margin: 20px 0 0 0;
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

.honor-mode-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
}

.status-indicator.active {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

/* Honor Mode Cancelled */
.honor-mode-cancelled {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.honor-mode-cancelled-card {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 16px;
    padding: 25px;
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.honor-mode-cancelled-content {
    text-align: center;
}

.honor-mode-cancelled-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.honor-mode-cancelled-content p {
    margin: 0 0 25px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.honor-mode-cancelled-actions {
    text-align: center;
}

.dismiss-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Quick Mission Card */
.quick-mission-card {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quick-mission-card-content {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 16px;
    padding: 25px;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.quick-mission-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.quick-mission-header i {
    font-size: 1.5rem;
    color: white;
}

.quick-mission-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.placeholder-card-content p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.quick-mission-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.quick-mission-refresh-btn {
    background: rgba(255, 0, 0, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    color: rgba(255, 255, 255, 1) !important;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: auto;
    font-size: 1rem;
    min-width: 36px;
    min-height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quick-mission-refresh-btn:hover {
    color: rgba(255, 255, 255, 1) !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.quick-mission-refresh-btn:active {
    transform: rotate(360deg);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.status-indicator.placeholder {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.status-indicator.placeholder.completed {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.quick-mission-content {
    margin: 15px 0;
}

.quick-mission-preview {
    margin: 0 0 15px 0;
    opacity: 0.9;
    line-height: 1.5;
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.quick-mission-prompt {
    margin: 0 0 15px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.quick-mission-action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.quick-mission-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.quick-mission-action-btn i {
    font-size: 0.9rem;
}

/* Planning Tab */
.planning-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.planning-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.planning-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.planning-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.planning-section-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-group-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-group-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.planning-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.planning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.planning-card.completed {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff9 100%);
}

.planning-card.completed .card-header i {
    color: #28a745;
}

.planning-card.completed .card-action {
    background: #28a745;
}

.planning-card.completed .card-action:hover {
    background: #218838;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 1.8rem;
    color: #2c5aa0;
}

.card-header h3,
.card-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.planning-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-action {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-action:hover {
    background: #1e3a5f;
    transform: translateY(-2px);
}

/* Trustors Tab */
.trustors-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.trustors-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.trustors-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.trustor-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 20px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Print section text and spacing overrides */
#print-tab h2,
#print-tab h3,
#print-tab p {
    color: white !important;
}

#print-tab .print-header h2,
#print-tab .print-header p {
    color: white !important;
}

#print-tab .print-section h3,
#print-tab .print-section p {
    color: white !important;
}

/* Print section spacing */
#print-tab .print-options {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#print-tab .print-section {
    margin-bottom: 40px;
}

#print-tab .print-buttons,
#print-tab .export-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#print-tab .print-section h3 {
    margin-bottom: 10px;
}

#print-tab .print-section p {
    margin-bottom: 20px;
}

/* Print section specific button overrides */
#print-tab .action-btn.secondary,
#print-tab .print-buttons .action-btn.secondary,
#print-tab .export-buttons .action-btn.secondary,
#print-tab button.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
}

#print-tab .action-btn.secondary:hover,
#print-tab .print-buttons .action-btn.secondary:hover,
#print-tab .export-buttons .action-btn.secondary:hover,
#print-tab button.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

#print-tab .action-btn.secondary i,
#print-tab .print-buttons .action-btn.secondary i,
#print-tab .export-buttons .action-btn.secondary i,
#print-tab button.action-btn.secondary i {
    color: white !important;
}

/* Even more specific overrides */
#print-tab #print-arrangements,
#print-tab #print-media,
#print-tab #print-contacts,
#print-tab #print-dependents,
#print-tab #print-accounts,
#print-tab #print-trustees,
#print-tab #export-pdf,
#print-tab #export-json,
#print-tab #export-csv {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

#print-tab #print-arrangements:hover,
#print-tab #print-media:hover,
#print-tab #print-contacts:hover,
#print-tab #print-dependents:hover,
#print-tab #print-accounts:hover,
#print-tab #print-trustees:hover,
#print-tab #export-pdf:hover,
#print-tab #export-json:hover,
#print-tab #export-csv:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Trustors Tab */
.trustors-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.trustors-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.trustors-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Activation Code Section */
.activation-code-section {
    max-width: 600px;
    margin: 40px auto 40px auto;
}

.activation-code-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.activation-code-header {
    text-align: center;
    margin-bottom: 25px;
}

.activation-code-header h3 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.activation-code-header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.activation-code-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activation-code-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activation-code-form label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.activation-code-form input {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.activation-code-form input:focus {
    outline: none;
    border-color: #2c5aa0;
    background: white;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.activation-code-form input::placeholder {
    color: #999;
}

#accept-invitation-btn {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

#accept-invitation-btn:hover {
    background: linear-gradient(135deg, #1e3a8a, #153061);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

#accept-invitation-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#accept-invitation-btn:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.trustors-content {
    max-width: 800px;
    margin: 0 auto;
}

.trustors-list {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.trustor-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.trustor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.trustor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
}

.trustor-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.trustor-info {
    flex: 1;
}

.trustor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.trustor-email {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.trustor-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.trustor-status.activated {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.trustor-status.activated::before {
    content: "✓";
    font-weight: bold;
}

.trustor-status.pending {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.trustor-status.pending::before {
    content: "⏳";
}

.trustor-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.trustor-action-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: #666;
}

.trustor-action-btn:hover {
    background: #e9ecef;
    color: #333;
}

.trustor-action-btn.primary {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.trustor-action-btn.primary:hover {
    background: #1e3a8a;
}

.trustor-action-btn.delete {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.trustor-action-btn.delete:hover {
    background: #c82333;
    border-color: #c82333;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 400px;
    margin: 0 auto;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.error-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #f44336;
}

.error-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.error-state p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* Resources Tab */
.resources-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.resources-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.resources-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.resources-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.resource-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.resource-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.resource-card p {
    color: #666;
    line-height: 1.6;
}


/* Fat Footer */
.fat-footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
    color: white;
    margin-top: 60px;
    padding: 60px 0 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-downloads .download-badge {
    height: 40px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.footer-downloads .download-badge:hover {
    transform: scale(1.05);
}

.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-item strong {
    color: white;
    font-weight: 600;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: white;
    text-decoration: underline;
}

.office-info {
    margin-bottom: 20px;
}

.office-address {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.office-address strong {
    color: white;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.what-we-do {
    margin-bottom: 20px;
}

.what-we-do-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 60px;
}

.what-we-do-item .number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.what-we-do-item .content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.what-we-do-item .content strong {
    color: white;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-downloads {
        align-items: center;
    }
    
    .footer-links {
        align-items: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 15px;
    }
    
    .header-content .logo h1 {
        font-size: 1.3rem;
    }
    
    .honor-mode-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .tab-navigation {
        padding: 0 15px;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    .quick-actions,
    .planning-card,
    .resource-card {
        padding: 20px;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .planning-sections {
        gap: 30px;
    }
    
    .planning-section-group {
        padding: 20px;
    }
    
    .section-group-cards {
        grid-template-columns: 1fr;
    }
    
    .trustor-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .auth-header .logo h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .loading-content .logo h1 {
        font-size: 2rem;
    }
    
    .loading-content .logo i {
        font-size: 2.5rem;
    }
    
    .welcome-section h2 {
        font-size: 1.8rem;
    }
    
    .planning-header h2,
    .trustors-header h2,
    .resources-header h2 {
        font-size: 2rem;
    }
}

/* Modal Styles */
.section-modal, .form-modal, .profile-modal, .arrangement-modal, .media-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;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
}

.modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Section Management Styles */
.section-actions {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.section-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.section-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.item-content h4 {
    margin: 0 0 0.25rem 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
}

.item-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Trustee-specific styling */
.trustee-item {
    position: relative;
}

.trustee-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.trustee-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.trustee-status.pending::before {
    content: "⏳";
    font-size: 0.875rem;
}

.trustee-status.accepted {
    background: #d1fae5;
    color: #065f46;
}

.trustee-status.accepted::before {
    content: "✅";
    font-size: 0.875rem;
}

.trustee-status.expired {
    background: #fee2e2;
    color: #991b1b;
}

.trustee-status.expired::before {
    content: "❌";
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-style: italic;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Override btn-secondary in print section */
#print-tab .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

#print-tab .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Profile Modal Specific Styles */
.profile-modal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Arrangement Modal Specific Styles */
.arrangement-modal .modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.arrangement-prompt {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #2c5aa0;
}

.arrangement-prompt p {
    margin: 0;
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

.arrangement-modal .form-group textarea {
    min-height: 200px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

/* Media Modal Specific Styles */
.media-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.media-prompt {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #2c5aa0;
}

.media-prompt p {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

.photo-count-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.photo-count {
    font-weight: 600;
    color: #2c5aa0;
    font-size: 0.9rem;
}

.file-size-info {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

.media-actions {
    margin-bottom: 20px;
    text-align: center;
}

.media-list {
    max-height: 400px;
    overflow-y: auto;
}

.media-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f9fafb;
}

.media-item-content {
    flex: 1;
}

.media-item-info h4 {
    margin: 0 0 5px 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.media-item-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.media-item-actions {
    display: flex;
    gap: 8px;
}

.media-item-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #d1d5db;
}

.empty-state p {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.empty-state small {
    color: #9ca3af;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay button {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.photo-overlay .enlarge-photo-btn {
    background: rgba(59, 130, 246, 0.9);
}

.photo-overlay .enlarge-photo-btn:hover {
    background: rgba(59, 130, 246, 1);
    transform: scale(1.1);
}

.photo-overlay .delete-photo-btn {
    background: rgba(220, 38, 38, 0.9);
}

.photo-overlay .delete-photo-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

/* Photo enlarge modal */
.photo-enlarge-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-enlarge-modal.show {
    opacity: 1;
    visibility: visible;
}

.photo-enlarge-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-enlarge-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.photo-enlarge-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s ease;
}

.photo-enlarge-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.photo-enlarge-info {
    margin-top: 15px;
    color: white;
    text-align: center;
    max-width: 500px;
}

.photo-enlarge-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.photo-enlarge-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.profile-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.profile-section h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Profile Photo Section Styles */
.profile-photo-section {
    margin-bottom: 1.5rem;
}

.profile-photo-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.profile-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid #d1d5db;
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-align: center;
}

.profile-photo-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.profile-photo-placeholder span {
    font-size: 0.875rem;
    color: #6b7280;
}

.profile-photo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-align: center;
}

.profile-photo-loading i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

.profile-photo-loading span {
    font-size: 0.875rem;
    color: #6b7280;
}

.profile-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-photo-actions .btn-secondary,
.profile-photo-actions .btn-danger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
}

.profile-photo-actions .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.profile-photo-actions .btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.profile-photo-actions .btn-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.profile-photo-actions .btn-danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.profile-photo-actions .btn-danger i {
    color: #dc2626;
}

/* Responsive design for profile photo */
@media (max-width: 640px) {
    .profile-photo-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-photo-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .profile-photo-actions .btn-secondary,
    .profile-photo-actions .btn-danger {
        min-width: 120px;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.form-group input[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.2s;
}

.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 0.5rem;
        max-height: 95vh;
    }
    
    .modal-header, .modal-body {
        padding: 1rem;
    }
    
    .section-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .item-actions {
        align-self: flex-end;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .profile-modal .modal-content {
        max-width: 95vw;
    }
}
/* Trustors Tab Styles */
.trustors-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.trustors-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trustor-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.trustor-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.trustor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.trustor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5aa0, #1e3a5f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.trustor-details h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.trustor-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.trustor-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activate-honor-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.activate-honor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.activate-honor-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.activate-honor-btn.activated {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.activate-honor-btn.activated:hover {
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.honor-mode-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.honor-mode-status.active {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.honor-mode-status.inactive {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.no-trustors {
    text-align: center;
    padding: 4rem 2rem;
}

.no-trustors .empty-state {
    max-width: 400px;
    margin: 0 auto;
    color: white !important;
}

.no-trustors .empty-state i {
    font-size: 4rem;
    color: white !important;
    margin-bottom: 1rem;
}

.no-trustors .empty-state h3 {
    margin: 0 0 1rem 0;
    color: white !important;
    font-size: 1.5rem;
}

.no-trustors .empty-state p {
    margin: 0;
    color: white !important;
    line-height: 1.6;
}

/* More specific selector to override any conflicting styles */
#no-trustors .empty-state,
#no-trustors .empty-state h3,
#no-trustors .empty-state p,
#no-trustors .empty-state i {
    color: white !important;
    font-style: normal !important;
}

.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-state .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-state p {
    color: #666;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .trustors-content {
        padding: 1rem;
    }
    
    .activation-code-section {
        margin: 2rem 1rem 2rem 1rem;
    }
    
    .activation-code-card {
        padding: 20px;
    }
    
    .activation-code-header h3 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .trustor-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .trustor-info {
        width: 100%;
    }
    
    .trustor-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .activate-honor-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Cache bust: Mon Sep 15 21:43:47 CDT 2025 */
/* Force update: 1757990728 */
