/* 
 * GoDaddy Webmail Login Page - Exact Replica
 * Copyright © 2025 - Replica for educational purposes
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #F5F7FA;
    color: #333;
    line-height: 1.4;
    height: 100vh;
    overflow: hidden;
}

/* Main Container */
.container {
    display: flex;
    height: 100vh;
}

/* Left Section - Illustration */
.left-section {
    flex: 1;
    background-color: #F5F7FA;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: 100vh;
}

.illustration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desk-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Right Section - Login Form */
.right-section {
    flex: 0 0 50%;
    max-width: 800px;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    justify-content: center; /* center header + form vertically */
    align-items: center; /* center horizontally within right panel */
}

/* Login Wrapper - White Container */
.login-wrapper {
    background-color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

/* Webmail Header */
.webmail-header {
    background-color: #4A4A4A;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.webmail-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

/* Login Form Container */
.login-form-container {
    padding: 1.5rem 2rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.signin-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Password Container */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    flex: 1;
    padding-right: 4rem;
}

.show-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #007bff;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.show-password:hover {
    background-color: #f8f9fa;
}

/* Checkbox Group */
.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Sign In Button */
.signin-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
}

.signin-button:hover {
    background-color: #0056b3;
}

.signin-button:active {
    background-color: #004085;
}

/* Forgot Password Link */
.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #F5F7FA;
    padding: 0.5rem;
    text-align: center;
    flex-shrink: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer p {
    color: #666;
    font-size: 0.75rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }
    
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .left-section {
        flex: 0 0 40vh;
        height: 40vh;
        padding: 0.5rem;
    }
    
    .right-section {
        flex: 1;
        max-width: none;
        height: 60vh;
    }
    
    .desk-image {
        max-width: 100%;
        max-height: 100%;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 1rem;
    }
    
    .webmail-header {
        padding: 0.5rem 1rem;
    }
    
    .signin-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .login-form {
        gap: 1rem;
    }
}

/* Focus States for Accessibility */
.form-group input:focus,
.signin-button:focus,
.show-password:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Loading State */
.signin-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:active {
    background-color: #004085;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error States */
.form-group input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Confirmation Page Styles */
.confirmation-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.4;
}

/* Progress Modal */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.progress-modal.hidden {
    display: none;
}

.progress-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.progress-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-header p {
    color: #666;
    margin-bottom: 2rem;
}

.progress-bar-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007bff;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #666;
}

.step.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.step.completed {
    background: #e8f5e8;
    color: #2e7d32;
    font-weight: 500;
}

.step i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.step.completed i {
    color: #4caf50;
}

.step.active i {
    color: #2196f3;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(179, 11, 0, 0.1);
}

.dashboard-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 700;
}

.dashboard-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

.dashboard-content {
    text-align: center;
    margin-bottom: 3rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invoice-loading-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 2px solid rgba(179, 11, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
}

.loading-icon {
    font-size: 4rem;
    color: #b30b00;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.invoice-loading-card h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.invoice-loading-card p {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.cute-loading {
    margin: 2rem 0;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #b30b00;
    animation: loadingDots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.status-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 10px;
    color: #28a745;
    font-weight: 500;
}

.status-message i {
    font-size: 1.2rem;
}

.dashboard-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(179, 11, 0, 0.1);
    color: #7f8c8d;
    font-size: 0.9rem;
}

.dashboard-footer a {
    color: #007bff;
    text-decoration: none;
}

.dashboard-footer a:hover {
    text-decoration: underline;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Email Interface Styles */
.email-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Email Header */
.email-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a73e8;
}

.header-left .logo i {
    font-size: 1.5rem;
}

.header-center {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
}

.search-bar {
    position: relative;
    width: 100%;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 0.9rem;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    background: white;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a73e8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Email Layout */
.email-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Email Sidebar */
.email-sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e0e0e0;
    padding: 1rem 0;
    overflow-y: auto;
}

.compose-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0 1rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.compose-btn:hover {
    background: #1557b0;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.sidebar-nav {
    margin-bottom: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: #f0f0f0;
}

.nav-item.active {
    background: #e3f2fd;
    color: #1a73e8;
    font-weight: 500;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1a73e8;
}

.nav-item i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.nav-item span {
    flex: 1;
}

.badge {
    background: #ff4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.sidebar-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 1rem 0;
}

.labels-section {
    padding: 0 1.5rem;
}

.labels-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.label-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.label-item:hover {
    color: #333;
}

.label-item i {
    width: 16px;
    margin-right: 0.75rem;
    font-size: 0.8rem;
}

/* Email Main Content */
.email-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

/* Email Toolbar */
.email-toolbar {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Email List */
.email-list {
    flex: 1;
    overflow-y: auto;
}

.email-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.email-item:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.email-item.unread {
    background: #f8f9ff;
    font-weight: 500;
}

.email-item.unread .sender-name {
    font-weight: 600;
}

.email-checkbox {
    margin-right: 0.75rem;
}

.email-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.email-star {
    margin-right: 0.75rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s ease;
}

.email-star:hover {
    color: #ffa500;
}

.email-star i.fas {
    color: #ffa500;
}

.email-sender {
    width: 150px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.sender-name {
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-content {
    flex: 1;
    margin-right: 1rem;
    min-width: 0;
}

.email-subject {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.subject-text {
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-preview {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-time {
    width: 80px;
    text-align: right;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #666;
}

.email-attachment {
    width: 20px;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* Email Pagination */
.email-pagination {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.pagination-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #ccc;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design for Email Interface */
@media (max-width: 768px) {
    .email-layout {
        flex-direction: column;
    }
    
    .email-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .header-center {
        margin: 0 1rem;
    }
    
    .email-sender {
        width: 120px;
    }
    
    .email-time {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .email-header {
        padding: 0.5rem 1rem;
    }
    
    .header-center {
        margin: 0 0.5rem;
    }
    
    .search-bar input {
        padding: 0.5rem 0.75rem 0.5rem 2rem;
        font-size: 0.8rem;
    }
    
    .email-item {
        padding: 0.5rem;
    }
    
    .email-sender {
        width: 100px;
    }
    
    .email-time {
        width: 50px;
        font-size: 0.7rem;
    }
}

/* Toast Notifications for Email Interface */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    gap: 8px;
}

.toast-header i {
    font-size: 16px;
}

.toast-success .toast-header i { color: #28a745; }
.toast-error .toast-header i { color: #dc3545; }
.toast-info .toast-header i { color: #17a2b8; }

.toast-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

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

.toast-body {
    padding: 12px 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Compose Modal Styles */
.compose-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.compose-modal.hidden {
    display: none;
}

.compose-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.compose-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.compose-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

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

.compose-btn-minimize,
.compose-btn-close {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compose-btn-minimize:hover {
    background: #ffa500;
    color: white;
}

.compose-btn-close:hover {
    background: #ff4444;
    color: white;
}

.compose-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.compose-field {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.compose-field label {
    width: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    flex-shrink: 0;
}

.compose-field input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    background: transparent;
}

.compose-field input::placeholder {
    color: #999;
}

.compose-body {
    flex: 1;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.compose-body textarea {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    font-family: inherit;
    background: transparent;
    min-height: 200px;
}

.compose-body textarea::placeholder {
    color: #999;
}

.compose-toolbar {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.compose-toolbar-left {
    display: flex;
    gap: 0.75rem;
}

.compose-toolbar-right {
    display: flex;
    gap: 0.5rem;
}

.compose-send-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.compose-send-btn:hover {
    background: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

.compose-save-btn,
.compose-attach-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.compose-save-btn:hover {
    background: #5a6268;
}

.compose-attach-btn:hover {
    background: #5a6268;
}

.compose-format-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compose-format-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333;
}

/* Responsive Design for Compose Modal */
@media (max-width: 768px) {
    .compose-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .compose-field {
        padding: 0.5rem 1rem;
    }
    
    .compose-field label {
        width: 50px;
        font-size: 0.8rem;
    }
    
    .compose-toolbar {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .compose-toolbar-left,
    .compose-toolbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .compose-body textarea {
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .compose-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .compose-header {
        padding: 0.75rem 1rem;
    }
    
    .compose-field {
        padding: 0.5rem;
    }
    
    .compose-field label {
        width: 40px;
        font-size: 0.75rem;
    }
    
    .compose-toolbar {
        padding: 0.5rem;
    }
    
    .compose-send-btn,
    .compose-save-btn,
    .compose-attach-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}