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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, 'Malgun Gothic', '맑은 고딕', 'Nanum Gothic', '나눔고딕', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Page Management */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Footer Styles */
.common-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    margin-top: 60px;
    padding: 40px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Header Styles */
.header,
.common-header {
    background: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 24px;
    height: 24px;
}

.logo span {
    font-size: 20px;
    font-weight: 600;
    color: #4285f4;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background-color: #f1f3f4;
    color: #333;
}

.nav-item i {
    font-size: 16px;
}

.nav-item.jayoo-link {
    background: #279AFF;
    color: white;
    border: 1px solid #1e88e5;
    border-radius: 8px;
    padding: 16px 24px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    max-width: 200px;
}

.nav-item.jayoo-link:hover {
    background: #1e88e5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.jayoo-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 26px;
    position: relative;
}

.jayoo-logo img {
    width: 100px;
    height: 26px;
    object-fit: contain;
}

.jayoo-text {
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #2d5a2d;
}

.link-icon {
    font-size: 18px;
    color: white;
    opacity: 0.8;
}

.nav-item.jayoo-link:hover .link-icon {
    opacity: 1;
    color: white;
}

/* Hero Section - AI 색상 추출 페이지 */
.main-content {
    flex: 1;
    padding: 10px 24px 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
}

.hero-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Upload Container */
.upload-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.upload-area {
    background: white;
    border: 3px dashed #4285f4;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #1976d2;
    background-color: #f8fbff;
}

.upload-icon {
    font-size: 64px;
    color: #4285f4;
    margin-bottom: 24px;
}

.upload-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.upload-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.upload-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.info-item {
    font-size: 14px;
    color: #666;
    background: #f1f3f4;
    padding: 6px 12px;
    border-radius: 20px;
}

.upload-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
}

.info-card.orange {
    border-left-color: #ff9800;
}

.info-card.green {
    border-left-color: #4caf50;
}

.info-card.purple {
    border-left-color: #9c27b0;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.orange .card-icon {
    background: #fff3e0;
    color: #ff9800;
}

.green .card-icon {
    background: #e8f5e8;
    color: #4caf50;
}

.purple .card-icon {
    background: #f3e5f5;
    color: #9c27b0;
}

.card-icon i {
    font-size: 24px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.card-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.card-content p {
    margin-bottom: 8px;
}

/* Tools Page Styles */
.tools-main {
    flex: 1;
    padding: 10px 24px 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.tools-hero {
    text-align: center;
    margin-bottom: 60px;
}

.tools-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.tools-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tools-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 300px;
    text-align: left;
}

.feature-item i {
    font-size: 20px;
    color: #4285f4;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 14px;
    color: #666;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #e3f2fd;
}

/* Disabled tool card styles */
.tool-card.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.tool-card.disabled:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Disabled nav item styles */
.nav-item.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.nav-item.disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.tool-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.tool-icon.red {
    background: linear-gradient(135deg, #ff5252, #f44336);
}

.tool-icon.yellow {
    background: linear-gradient(135deg, #ffeb3b, #ff9800);
}

.tool-icon.blue {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.tool-icon.pink {
    background: linear-gradient(135deg, #e91e63, #c2185b);
}

.tool-icon.blue-light {
    background: linear-gradient(135deg, #03a9f4, #0288d1);
}

.tool-icon.gray {
    background: linear-gradient(135deg, #607d8b, #455a64);
}

.tool-icon.purple {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.tool-icon.teal {
    background: linear-gradient(135deg, #009688, #00695c);
}

.tool-icon i {
    font-size: 28px;
}

.tool-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.tool-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.format-info {
    background: #fafbfc;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.format-info p {
    font-size: 14px;
    color: #495057;
    margin: 4px 0;
    line-height: 1.4;
}

.format-info p:first-child {
    margin-top: 0;
}

.format-info p:last-child {
    margin-bottom: 0;
}

.format-info strong {
    color: #333;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .main-content,
    .tools-main {
        padding: 24px 16px;
    }

    .hero-title,
    .tools-title {
        font-size: 28px;
    }

    .hero-subtitle,
    .tools-subtitle {
        font-size: 16px;
    }

    .upload-area {
        padding: 40px 24px;
    }

    .upload-title {
        font-size: 20px;
    }

    .upload-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-card {
        padding: 20px;
    }

    .tools-features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tool-card {
        padding: 20px;
    }
    
    .format-info {
        padding: 10px;
    }
    
    .format-info p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-icon {
        font-size: 36px;
    }

    .upload-icon {
        font-size: 48px;
    }

    .upload-btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .tool-icon {
        width: 56px;
        height: 56px;
    }

    .tool-icon i {
        font-size: 24px;
    }
}

/* Animation for page transitions */
.page {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 실행 결과 섹션 - 개선된 디자인 */
.execution-result-section {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(80, 200, 120, 0.1) 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.execution-result-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4A90E2, #50C878, #4A90E2);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.execution-result-section h4 {
    color: #000000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.execution-result-section h4 i {
    color: #4A90E2;
    font-size: 1.1em;
}

.command-info {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.command-line {
    margin-bottom: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    transition: transform 0.2s ease;
}

.command-line:hover {
    transform: translateY(-1px);
}

.command-text {
    background: rgba(0, 0, 0, 0.6);
    color: #90EE90;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Courier New', 'Malgun Gothic', '맑은 고딕', 'Nanum Gothic', '나눔고딕', monospace;
    font-size: 0.9em;
    word-break: break-all;
    border: 1px solid rgba(144, 238, 144, 0.2);
    text-shadow: 0 0 5px rgba(144, 238, 144, 0.3);
}

.command-output {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 16px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', 'Courier New', 'Malgun Gothic', '맑은 고딕', 'Nanum Gothic', '나눔고딕', monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.command-output::-webkit-scrollbar {
    width: 8px;
}

.command-output::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.command-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.command-output::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.stdout {
    border-left: 4px solid #4CAF50;
    color: #90EE90;
    background: rgba(76, 175, 80, 0.1);
}

.stderr {
    border-left: 4px solid #f44336;
    color: #ffcccb;
    background: rgba(244, 67, 54, 0.1);
}

.processing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4A90E2, #50C878);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #4CAF50;
    display: block;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85em;
    color: #cccccc;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.return-code {
    margin: 16px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    border-radius: 10px;
    border-left: 4px solid #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.success-code {
    color: #4CAF50;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.error-code {
    color: #f44336;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(244, 67, 54, 0.3);
}

.stdout-section, .stderr-section {
    margin: 16px 0;
    padding: 4px 0;
}

.stdout-section strong, .stderr-section strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 0.95em;
    font-weight: 600;
}

.stdout-section strong i {
    color: #4CAF50;
}

.stderr-section strong i {
    color: #f44336;
}

/* JSON 내용 섹션 - 개선된 디자인 */
.json-content-section {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(233, 30, 99, 0.1) 100%);
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.json-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9C27B0, #E91E63, #9C27B0);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.json-content-section h4 {
    color: #000000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.json-content-section h4 i {
    color: #9C27B0;
    font-size: 1.1em;
}

.json-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.json-toggle-btn, .json-copy-btn, .json-format-btn, .json-expand-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #9C27B0, #E91E63);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.json-toggle-btn::before, .json-copy-btn::before, .json-format-btn::before, .json-expand-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.json-toggle-btn:hover::before, .json-copy-btn:hover::before, .json-format-btn:hover::before, .json-expand-btn:hover::before {
    left: 100%;
}

.json-toggle-btn:hover, .json-copy-btn:hover, .json-format-btn:hover, .json-expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(156, 39, 176, 0.4);
}

.json-toggle-btn.active {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.json-search {
    margin-bottom: 20px;
    position: relative;
}

.json-search-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 2px solid rgba(156, 39, 176, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 0.95em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.json-search-input:focus {
    outline: none;
    border-color: #9C27B0;
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.3);
}

.json-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.json-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9C27B0;
    font-size: 1.1em;
}

.json-display {
    background: #ffffff;
    color: #000000;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Malgun Gothic', '맑은 고딕', 'Nanum Gothic', '나눔고딕', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
    position: relative;
}

/* JSON label removed for cleaner look */

.json-display::-webkit-scrollbar {
    width: 8px;
}

.json-display::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.json-display::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.json-display::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.json-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.json-stats > div {
    text-align: center;
    padding: 16px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(156, 39, 176, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.json-stats > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #9C27B0, #E91E63);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.json-stats > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(156, 39, 176, 0.3);
}

.json-stats > div:hover::before {
    transform: scaleX(1);
}

.json-stat-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #E91E63;
    display: block;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
    margin-bottom: 4px;
}

.json-stat-label {
    font-size: 0.85em;
    color: #cccccc;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* JSON 구문 강조 - 개선된 색상 */
.json-key { 
    color: #79C0FF; 
    font-weight: 600;
    text-shadow: 0 0 5px rgba(121, 192, 255, 0.3);
}

.json-string { 
    color: #A5D6FF; 
    font-style: italic;
}

.json-number { 
    color: #79C0FF; 
    font-weight: 500;
}

.json-boolean { 
    color: #FFA657; 
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 166, 87, 0.3);
}

.json-null { 
    color: #FF7B72; 
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 123, 114, 0.3);
}

.json-punctuation { 
    color: #F1F8FF; 
    font-weight: 500;
}

.json-highlight { 
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1e1e1e; 
    padding: 3px 6px; 
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 4px 16px rgba(255, 215, 0, 0.6); }
}

/* 실패 상태 표시 개선 */
.conversion-result-container.failure {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(255, 87, 34, 0.1) 100%);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.conversion-result-container.failure::before {
    background: linear-gradient(90deg, #f44336, #ff5722, #f44336);
}

.failure-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .failure-summary {
        grid-template-columns: 1fr;
    }
}

.error-info {
    background: rgba(244, 67, 54, 0.1);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.error-message {
    margin-top: 12px;
}

.error-text {
    background: rgba(0, 0, 0, 0.6);
    color: #ffcccb;
    padding: 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.failure-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

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

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.4);
}

.troubleshooting {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
}

.troubleshooting h4 {
    color: #FFC107;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.troubleshooting ul {
    list-style: none;
    padding: 0;
}

.troubleshooting li {
    padding: 8px 0;
    color: #ffffff;
    position: relative;
    padding-left: 20px;
}

.troubleshooting li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 8px;
}

.page[style*="display: none"] {
    opacity: 0;
}

/* Loading state */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(66, 133, 244, 0.3);
    border-radius: 50%;
    border-top-color: #4285f4;
    animation: spin 1s linear infinite;
}

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

/* Drag and drop states */
.upload-area.dragover {
    border-color: #1976d2;
    background-color: #e3f2fd;
    transform: scale(1.02);
}

/* Focus states for accessibility */
.upload-btn:focus,
.tool-card:focus,
.nav-item:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* Document Text Extraction Styles */
.extract-options-container,
.conversion-result-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 40px auto;
    max-width: 1050px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.extract-options-container h3,
.conversion-result-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.file-info {
    background: #fafbfc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.file-info p {
    margin: 4px 0;
    font-size: 14px;
}

.extract-format-selection {
    margin-bottom: 20px;
}

.extract-format-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.format-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.format-select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.extract-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.extract-btn,
.cancel-btn,
.download-converted-btn,
.new-conversion-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.extract-btn {
    background: #4285f4;
    color: white;
    flex: 1;
}

.extract-btn:hover:not(:disabled) {
    background: #1976d2;
    transform: translateY(-1px);
}

.extract-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.cancel-btn {
    background: #f44336;
    color: white;
    flex: 1;
}

.cancel-btn:hover:not(:disabled) {
    background: #d32f2f;
    transform: translateY(-1px);
}

.download-converted-btn {
    background: #28a745;
    color: white;
    flex: 1;
    min-width: 180px;
}

.download-converted-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.new-conversion-btn {
    background: #90EE90;
    color: #333;
    flex: 1;
}

.new-conversion-btn:hover {
    background: #7FDD7F;
    transform: translateY(-1px);
}

.extract-status {
    background: #fafbfc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4285f4, #1976d2);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

#statusText {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.conversion-summary {
    margin-bottom: 24px;
}

.file-conversion-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    background: #fafbfc;
    padding: 20px;
    border-radius: 8px;
}

.source-file,
.target-file {
    text-align: center;
}

.source-file h4,
.target-file h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
}

.source-file p,
.target-file p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

.arrow {
    font-size: 24px;
    color: #4285f4;
    text-align: center;
}

.download-section {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.command-log {
    background: #fafbfc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.command-log h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.command-log code {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Malgun Gothic', '맑은 고딕', 'Nanum Gothic', '나눔고딕', monospace;
    font-size: 13px;
    color: #333;
    display: block;
    word-break: break-all;
}

.command-output {
    background: #fafbfc;
    border: 1px solid #e9ecef;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Malgun Gothic', '맑은 고딕', 'Nanum Gothic', '나눔고딕', monospace;
    font-size: 12px;
    color: #495057;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
}

/* Success and error messages */
.message {
    padding: 16px;
    margin: 16px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

.message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #2196f3;
}

/* Conversion Options Styles */
.conversion-options {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 24px;
    margin: 24px auto;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.options-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkbox-option,
.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-option:hover,
.radio-option:hover {
    background-color: #f8f9fa;
}

.checkbox-option input[type="checkbox"],
.radio-option input[type="radio"] {
    display: none;
}

.checkmark,
.radiomark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.radiomark {
    border-radius: 50%;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark {
    background-color: #4285f4;
    border-color: #4285f4;
}

.checkbox-option input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-option input[type="radio"]:checked + .radiomark {
    background-color: #4285f4;
    border-color: #4285f4;
}

.radio-option input[type="radio"]:checked + .radiomark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.option-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Tool Icon Colors */
.tool-icon.blue {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.tool-icon.green {
    background: linear-gradient(135deg, #34a853, #fbbc04);
}

.tool-icon.orange {
    background: linear-gradient(135deg, #fbbc04, #ea4335);
}

/* PDF Conversion Options and Results */
.pdf-conversion-options-container,
.pdf-conversion-result-container {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 24px;
    margin: 24px auto;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-conversion-options-container h3,
.pdf-conversion-result-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.conversion-result-info {
    background: #fafbfc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.conversion-result-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.conversion-result-info strong {
    color: #4285f4;
}

/* Responsive Design for Extract UI */
@media (max-width: 768px) {
    .extract-options-container,
    .conversion-result-container {
        margin: 20px auto;
        padding: 20px;
    }

    .file-conversion-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .extract-actions,
    .download-section {
        flex-direction: column;
    }

    .extract-btn,
    .cancel-btn,
    .download-converted-btn,
    .new-conversion-btn {
        flex: none;
    }

    .conversion-options {
        margin: 16px;
        padding: 16px;
    }

    .option-group {
        gap: 12px;
    }

    .checkbox-option,
    .radio-option {
        padding: 10px;
    }

    .option-text {
        font-size: 14px;
    }

    .pdf-conversion-options-container,
    .pdf-conversion-result-container {
        margin: 16px;
        padding: 16px;
    }

    .pdf-conversion-options-container h3,
    .pdf-conversion-result-container h3 {
        font-size: 18px;
    }

    .conversion-result-info {
        padding: 12px;
    }

    .conversion-result-info p {
        font-size: 13px;
    }
}

/* 인증 UI 스타일 */
.auth-section {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    min-width: 120px;
    width: 120px;
    justify-content: center;
    margin-left: 8px;
    white-space: nowrap;
}

.login-btn {
    background: white;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.home-btn {
    background: white;
    color: #6c757d;
    border: 1px solid #e9ecef;
    width: 140px;
    min-width: 140px;
}

.signup-btn {
    background: white;
    color: #6c757d;
    border: 1px solid #e9ecef;
}


.login-btn:hover {
    background: white;
    color: #495057;
    border-color: #7DD3FC;
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.2);
    transform: translateY(-1px);
}

.home-btn:hover {
    background: white;
    color: #495057;
    border-color: #FFB347;
    box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.2);
    transform: translateY(-1px);
}

.signup-btn:hover {
    background: white;
    color: #495057;
    border-color: #86EFAC;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.2);
    transform: translateY(-1px);
}

}

/* 공통 헤더 스타일 */
.common-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    min-height: 64px;
}

/* 페이지 컨테이너에 헤더 높이만큼 패딩 추가 */
.page {
    padding-top: 64px;
}

/* 기존 헤더 스타일을 공통 헤더에 적용 */
.common-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
}

.common-header .logo img {
    width: 32px;
    height: 32px;
}

.common-header .logo img.jayoo-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.common-header .nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.common-header .auth-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.user-btn {
    background: #28a745;
    color: white;
    min-width: 160px;
    width: auto;
    max-width: 220px;
    padding: 6px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-btn:hover {
    background: #218838;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

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

/* 인증 모달 스타일 - iPhone 스타일 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.auth-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 16px 20px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
                0 8px 24px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
}

.auth-header h2 {
    margin: 0;
    color: #1d1d1f;
    font-size: 22px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.01em;
}

.close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(60, 60, 67, 0.08);
    border: none;
    font-size: 16px;
    color: #8e8e93;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(60, 60, 67, 0.12);
    color: #3c3c43;
    transform: translateY(-50%) scale(1.05);
}

.auth-form {
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #1d1d1f;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: -0.01em;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(60, 60, 67, 0.18);
    border-radius: 14px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #7DD3FC;
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.2);
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.01);
}

.form-group input:invalid:not(:focus) {
    border-color: rgba(60, 60, 67, 0.3);
}

.auth-submit-btn {
    width: 100%;
    padding: 8px;
    margin-top: 16px !important;
}

/* 편집 모달에서는 마진 제거 */
#editModal .auth-submit-btn,
.auth-modal .auth-submit-btn {
    margin-top: 0 !important;
}

/* 취소 버튼 애니메이션 */
.cancel-btn {
    transition: all 0.2s ease-in-out !important;
}

.cancel-btn:hover {
    background: #e0e0e5 !important;
    border-color: #b8b8bd !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* 로그인 폼의 비밀번호 입력창과 버튼 사이 간격 추가 */
#loginForm .form-group:last-of-type {
    margin-bottom: 34px;
}

/* 로그인 폼의 비밀번호 필드 직접 타겟팅 */
#loginForm #loginPassword {
    margin-bottom: 34px;
}

/* 로그인 폼 전체 버튼 위쪽 여백 추가 */
#loginForm .auth-submit-btn {
    margin-top: 34px;
}

.auth-submit-btn {
    background: #007AFF;
    color: white;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.2);
    letter-spacing: -0.01em;
}

.auth-submit-btn:hover:not(:disabled) {
    background: #0056CC;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.3);
}

.auth-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    border: 1px solid #f44336;
}

.auth-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.auth-links {
    text-align: center;
    margin-top: 12px;
}

.forgot-password-link,
.back-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.forgot-password-link:hover,
.back-link:hover {
    color: #4285f4;
    text-decoration: underline;
}

.forgot-password-link i,
.back-link i {
    margin-right: 5px;
    font-size: 12px;
}

.auth-switch {
    text-align: center;
    color: #8e8e93;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin-top: 6px;
}

.auth-switch-btn {
    background: none;
    border: none;
    color: #007AFF;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-decoration: none;
    margin-left: 4px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.auth-switch-btn:hover {
    color: #0056CC;
    transform: scale(1.05);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .nav {
        gap: 12px;
    }
    
    .auth-btn span {
        display: none;
    }
    
    .auth-modal-content {
        padding: 24px;
        margin: 16px;
    }
    
    .auth-header h2 {
        font-size: 20px;
    }
}

/* 대시보드 스타일 */
.dashboard-main {
    flex: 1;
    padding: 40px 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.welcome-section h1.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-title i {
    color: #4285f4;
}

.dashboard-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.dashboard-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.dashboard-btn.primary:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

.dashboard-btn.secondary {
    background: #fafbfc;
    color: #666;
    border: 1px solid #e9ecef;
}

.dashboard-btn.secondary:hover {
    background: #e9ecef;
    color: #333;
}

/* 통계 카드 그리드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-card.total {
    border-left-color: #4285f4;
}

.stat-card.today {
    border-left-color: #28a745;
}

.stat-card.this-week {
    border-left-color: #ff9800;
}

.stat-card.file-size {
    border-left-color: #9c27b0;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.stat-card.total .stat-icon {
    background: linear-gradient(135deg, #4285f4, #1976d2);
}

.stat-card.today .stat-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.stat-card.this-week .stat-icon {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.stat-card.file-size .stat-icon {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 차트 섹션 */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 12px;
}

.chart-select {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

/* 최근 히스토리 섹션 */
.recent-history-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all-btn {
    background: #fafbfc;
    color: #666;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-all-btn:hover {
    background: #e9ecef;
    color: #333;
}

.history-table-container {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table th {
    background: #fafbfc;
    color: #333;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

.history-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    color: #666;
}

.history-table tr:hover {
    background: #fafbfc;
}

.loading-cell {
    text-align: center;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* 계정 정보 섹션 */
.account-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.account-info-card {
    background: #fafbfc;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.account-info-card:hover {
    background: #e9ecef;
}

.account-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4285f4, #1976d2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.account-info-content {
    flex: 1;
}

.account-label {
    font-size: 12px;
    color: #999;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 24px 16px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .dashboard-actions {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
        gap: 16px;
    }
    
    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .charts-section {
        gap: 20px;
    }
    
    .chart-container {
        padding: 20px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .section-header h3 {
        font-size: 18px;
    }
    
    .account-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .account-info-card {
        padding: 16px;
        gap: 12px;
    }
    
    .account-info-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .dashboard-title {
        font-size: 24px !important;
    }
    
    .dashboard-subtitle {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .history-table {
        font-size: 12px;
    }
    
    .history-table th,
    .history-table td {
        padding: 8px;
    }
}

/* 전역 알림 시스템 스타일 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    min-width: 300px;
    max-width: 400px;
    overflow: hidden;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.notification-content i {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-warning .notification-content i {
    color: #ffc107;
}

.notification-info .notification-content i {
    color: #17a2b8;
}

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

.notification-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* 전역 로딩 오버레이 */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.loader-content {
    position: relative;
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 200px;
}

.spinner i {
    font-size: 32px;
    color: #4285f4;
    margin-bottom: 16px;
}

.loader-message {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 요소별 로딩 상태 */
.element-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 1000;
}

.element-loader-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.element-loader-content i {
    color: #4285f4;
}

/* 확인 대화상자 */
.confirm-dialog-overlay {
    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: 10001;
    backdrop-filter: blur(2px);
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    max-width: 480px;
    overflow: hidden;
}

.confirm-dialog-content {
    padding: 24px;
    text-align: center;
}

.confirm-dialog-content i {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 16px;
}

.confirm-dialog-content p {
    margin: 0;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.confirm-dialog-actions {
    display: flex;
    border-top: 1px solid #e9ecef;
}

.confirm-dialog-actions button {
    flex: 1;
    padding: 16px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.confirm-dialog-actions .btn-cancel {
    color: #666;
    border-right: 1px solid #e9ecef;
}

.confirm-dialog-actions .btn-cancel:hover {
    background: #fafbfc;
}

.confirm-dialog-actions .btn-confirm {
    color: #4285f4;
}

.confirm-dialog-actions .btn-confirm:hover {
    background: #f0f7ff;
}

/* 로딩 상태 버튼 개선 */
.auth-submit-btn:disabled,
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-submit-btn:disabled i,
.btn:disabled i {
    animation: spin 1s linear infinite;
}

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

/* 반응형 알림 */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
    }
    
    .loader-content {
        margin: 20px;
        min-width: auto;
    }
    
    .confirm-dialog {
        margin: 20px;
        min-width: auto;
    }
}

/* 다크모드 지원 (향후 확장) */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .notification-message {
        color: #e2e8f0;
    }
    
    .notification-close {
        color: #a0aec0;
    }
    
    .notification-close:hover {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .loader-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .loader-message {
        color: #e2e8f0;
    }
    
    .confirm-dialog {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .confirm-dialog-content p {
        color: #e2e8f0;
    }
    
    .confirm-dialog-actions {
        border-color: #4a5568;
    }
    
    .confirm-dialog-actions .btn-cancel {
        color: #a0aec0;
        border-color: #4a5568;
    }
    
    .confirm-dialog-actions .btn-cancel:hover {
        background: #4a5568;
    }
    
    .confirm-dialog-actions .btn-confirm:hover {
        background: #2c5282;
    }
}

/* 이메일 인증 안내 스타일 */
.email-verification-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #90caf9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.verification-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.verification-notice-content i {
    color: #1976d2;
    font-size: 24px;
    margin-top: 4px;
    flex-shrink: 0;
}

.verification-text {
    flex: 1;
}

.verification-text strong {
    color: #1565c0;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.verification-text p {
    color: #424242;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.verification-text code {
    background: rgba(25, 118, 210, 0.1);
    color: #1565c0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.verification-text small {
    color: #757575;
    font-size: 12px;
    line-height: 1.4;
}

/* 다크 모드에서의 이메일 인증 안내 */
@media (prefers-color-scheme: dark) {
    .email-verification-notice {
        background: linear-gradient(135deg, #1e3a8a 0%, #581c87 100%);
        border-color: #3b82f6;
    }
    
    .verification-notice-content i {
        color: #60a5fa;
    }
    
    .verification-text strong {
        color: #93c5fd;
    }
    
    .verification-text p {
        color: #e2e8f0;
    }
    
    .verification-text code {
        background: rgba(59, 130, 246, 0.2);
        color: #93c5fd;
    }
    
    .verification-text small {
        color: #cbd5e1;
    }
}

/* ===== 계정 설정 페이지 스타일 ===== */
.account-settings-main {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.account-settings-container {
    max-width: none;
    width: 100%;
    margin: 0;
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.account-settings-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.settings-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
}

.settings-icon i {
    font-size: 32px;
}

.settings-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.settings-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Apple 스타일 스위치 */
.apple-switch input:checked + .switch-slider {
    background: #34c759 !important;
}

.apple-switch input:checked + .switch-slider + .switch-handle {
    transform: translateX(20px) !important;
}

.apple-switch:hover .switch-handle {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.apple-switch .switch-slider {
    transition: background 0.3s ease !important;
}

.apple-switch .switch-handle {
    transition: transform 0.3s ease, box-shadow 0.2s ease !important;
}

/* Apple 스타일 프로필 페이지 - 완전 재설계 */
.account-settings-main {
    background: #fafbfc !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: -60px !important;
}

.account-settings-container {
    display: flex !important;
    min-height: 100vh !important;
    background: #fafbfc !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 설정 사이드바 - 통합된 스타일 */
.settings-sidebar {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    background: white !important;
    border-right: 1px solid #e9ecef !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    height: 100vh !important;
    position: sticky !important;
    top: 0 !important;
}

/* 계정 설정 페이지에서의 사이드바 */
.account-settings-container .settings-sidebar {
    display: block !important;
    background: white !important;
    color: #495057 !important;
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
    .settings-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding: 20px 0 !important;
        position: relative !important;
        height: auto !important;
    }
}

/* 사이드바 네비게이션 */
.settings-nav {
    display: flex !important;
    flex-direction: column !important;
    padding: 40px 0 !important;
    gap: 8px !important;
    margin: 0 !important;
}

.nav-btn {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 24px !important;
    margin: 0 24px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    color: #86868b !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    width: calc(100% - 48px) !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    outline: none !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
}

.nav-btn:hover {
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    transform: none !important;
}

.nav-btn.active {
    background: #e5e5e7 !important;
    color: #1d1d1f !important;
    font-weight: 600 !important;
}

.nav-btn i {
    font-size: 20px !important;
    width: 24px !important;
    text-align: center !important;
    opacity: 1 !important;
}

/* 본문 영역 돌아가기 버튼 */
.settings-main .back-link:hover {
    background-color: rgba(0, 122, 255, 0.1) !important;
    text-decoration: none !important;
}
    align-items: center !important;
    gap: 12px !important;
    color: #007aff !important;
    text-decoration: none !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    transition: opacity 0.2s ease !important;
}

.settings-sidebar .back-link:hover {
    opacity: 0.7 !important;
    text-decoration: none !important;
}

.settings-sidebar .back-link i {
    font-size: 16px !important;
    color: #007aff !important;
}

/* 메인 콘텐츠 영역 */
.settings-main {
    flex: 1 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 40px 48px !important;
    background: #fafbfc !important;
    overflow-y: auto !important;
}

/* 프로필 헤더 */
.account-settings-header {
    margin-bottom: 32px !important;
}

.settings-icon {
    display: none !important;
}

.settings-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin: 0 0 8px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.settings-subtitle {
    font-size: 19px !important;
    color: #86868b !important;
    margin: 0 !important;
    font-weight: 400 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* 프로필 섹션 */
.profile-section {
    background: white !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-bottom: 24px !important;
    border: 1px solid #e5e5e7 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.profile-section h2, .profile-section h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin: 0 0 24px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* 프로필 헤더 */
.profile-header {
    display: flex !important;
    align-items: center !important;
    padding: 0 0 24px 0 !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid #f2f2f7 !important;
}

.avatar-section {
    margin-right: 24px !important;
}

.avatar-circle {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #86868b 0%, #6d6d70 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important;
    color: white !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
}

.user-info h3 {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin: 0 0 4px 0 !important;
}

.user-role {
    font-size: 15px !important;
    color: #86868b !important;
    margin: 0 0 4px 0 !important;
}

.user-location {
    font-size: 15px !important;
    color: #86868b !important;
    margin: 0 !important;
}

/* 편집 버튼 */
.edit-btn {
    background: #f2f2f7 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 15px !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    margin-left: auto !important;
}

.edit-btn:hover {
    background: #e8e8ed !important;
    transform: none !important;
}

/* 정보 카드 */
.info-card {
    background: white !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 16px !important;
    border: 1px solid #e5e5e7 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.info-card h3 {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin: 0 0 16px 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* 개인 정보 그리드 */
.personal-info-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 24px 32px !important;
    margin: 0 !important;
}

.info-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.info-label {
    font-size: 13px !important;
    color: #86868b !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.info-value {
    font-size: 17px !important;
    color: #1d1d1f !important;
    font-weight: 400 !important;
}

/* 주소 그리드 */
.address-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 24px 32px !important;
    margin: 0 !important;
}

/* 보안 옵션 */
.security-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.security-option {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid #f2f2f7 !important;
}

.security-option:last-child {
    border-bottom: none !important;
}

.security-info h4 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin: 0 0 4px 0 !important;
}

.security-info p {
    font-size: 15px !important;
    color: #86868b !important;
    margin: 0 !important;
}

.security-btn {
    background: #f2f2f7 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 15px !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.security-btn:hover {
    background: #e8e8ed !important;
}

.security-btn.danger {
    color: #ff3b30 !important;
}

.security-btn.danger:hover {
    background: #fff2f2 !important;
}

/* 사이드바 네비게이션 */
.settings-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: none;
    border: none;
    color: #bdc3c7;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1d1d1f;
    border-radius: 12px;
    transform: none;
}

.nav-btn.active {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(0, 122, 255, 0.1);
}

.nav-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 1;
}

/* 메인 영역 */
.settings-main {
    flex: 1;
    padding: 0;
    background: #f5f6fa;
    overflow-y: auto;
}
/* 사이드바 완전 제거 */

/* 메인 영역을 전체 너비로 변경 */
.settings-main {
    width: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
    overflow-y: visible;
}

/* 섹션들을 모두 표시 */
.settings-section {
    display: block;
    margin-bottom: 40px;
}

.settings-section.active {
    animation: none;
}

/* 섹션 헤더 스타일 */
.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.section-description {
    color: #86868b;
    font-size: 0.9rem;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 24px;
}
.nav-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: none;
    border: none;
    border-radius: 12px;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.nav-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1d1d1f;
    border-radius: 12px;
    transform: scale(1.01);
}
.nav-btn.active {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(0, 122, 255, 0.1);
}
.nav-btn i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    opacity: 0.8;
    background: transparent !important;
    background-color: transparent !important;
}
.nav-btn.active i {
    opacity: 1;
}
.nav-btn span {
    background: transparent !important;
    background-color: transparent !important;
}    
    
    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 20px;
        gap: 12px;
    }
    
    .nav-btn {
        white-space: nowrap;
        min-width: 120px;
        justify-content: center;
    }
    
    .nav-btn:hover {
        transform: none;
    }
    
.settings-main {
    flex: 1;
    width: 100%;
    max-width: none;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    overflow-y: auto;
}
.settings-section {
    display: none;
}
.settings-section.active {
    display: block;
    animation: fadeInUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.section-header {
    margin-bottom: 32px;
}
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.section-description {
    color: #86868b;
    font-size: 1.1rem;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}    
    .profile-info-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .security-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

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

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    .account-settings-container {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    
    .nav-btn {
        color: #a0aec0;
    }
    
    .nav-btn:hover {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .section-title {
        color: #e2e8f0;
    }
    
    .section-description {
        color: #a0aec0;
    }
    
    .profile-info-card,
    .edit-form,
    .security-card,
    .stat-card,
    .history-list,
    .preference-group {
        background: #1a202c;
        border-color: #4a5568;
    }
    
    .form-group input {
        background: white;
        border-color: #e9ecef;
        color: #333;
    }
    
    .form-group input:focus {
        border-color: #7DD3FC;
        box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.2);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .btn-secondary {
        background: #2d3748;
        color: #a0aec0;
        border-color: #4a5568;
    }
    
    .btn-secondary:hover {
        background: #4a5568;
    }
    
    .info-label,
    .info-value {
        color: #a0aec0;
    }
    
    .security-info h3,
    .stat-value,
    .preference-info h4 {
        color: #e2e8f0;
    }
    
    .security-info p,
    .stat-label,
    .preference-info p {
        color: #a0aec0;
    }
    
    .danger-zone {
        background: #742a2a;
        border-color: #fc8181;
    }
}


/* 새로운 보안 섹션 스타일 */
.security-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f5f5f7;
}

.security-item:last-child {
    border-bottom: none;
}

.security-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.security-content p {
    font-size: 0.9rem;
    color: #86868b;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 섹션 헤더 개선 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h3.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .profile-info-grid,
    .address-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .security-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* 프로필 페이지 강제 스타일 적용 */
.account-settings-container {
    background: #fafbfc !important;
    color: #212529 !important;
}

.account-settings-container .settings-content {
    background: #fafbfc !important;
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
}


.account-settings-container .settings-main {
    background: #fafbfc !important;
    padding: 32px !important;
    width: 100% !important;
    max-width: none !important;
}

/* 다크모드 오버라이드 */
@media (prefers-color-scheme: dark) {
    .account-settings-container {
        background: #fafbfc !important;
        color: #212529 !important;
    }
    
    
    .account-settings-container .settings-main {
        background: #fafbfc !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .account-settings-container .profile-info-card {
        background: white !important;
        color: #212529 !important;
        border-color: #e9ecef !important;
    }
    
    .account-settings-container .nav-btn {
        color: #6c757d !important;
    }
    
    .account-settings-container .nav-btn.active {
        background: #e3f2fd !important;
        color: #1976d2 !important;
    }
}

/* 개선된 사이드바 스타일 */

.settings-nav {
    padding: 32px 0 !important;
}

.nav-btn {
    margin: 4px 16px !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #1d1d1f !important;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: calc(100% - 32px) !important; /* 사이드바 폭에서 좌우 마진 16px씩 제외 */
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    outline: none !important;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1d1d1f !important;
    transform: scale(1.01) !important;
}

.nav-btn.active {
    background: rgba(0, 122, 255, 0.1) !important;
    color: #007AFF !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    box-shadow: inset 0 1px 2px rgba(0, 122, 255, 0.1) !important;
    transform: none !important;
}

.nav-btn i {
    font-size: 18px !important;
    width: 22px !important;
    text-align: center !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s ease !important;
    background: transparent !important;
    background-color: transparent !important;
}

.nav-btn.active i {
    opacity: 1 !important;
}

.nav-btn:hover i {
    opacity: 1 !important;
}

.nav-btn span {
    background: transparent !important;
    background-color: transparent !important;
}

/* 메인 영역 개선 - 최고 우선순위 */
.account-settings-container .settings-main,
.settings-main {
    background: #fafbfc !important;
    padding: 40px !important;
    width: 100% !important;
    max-width: none !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.section-title {
    color: #212529 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

/* 모든 배경색을 회색 계열로 강제 변경 */
.account-settings-container * {
    background: #fafbfc !important;
}

/* 카드 배경을 연한 회색으로 */
.profile-info-card {
    background: #f8f9fa !important;
}

/* Apple 스타일 사이드바 */

/* Apple 스타일 액티브 메뉴 버튼 - 하늘색 배경 유지 */
.nav-btn.active {
    background: rgba(0, 122, 255, 0.1) !important;
    color: #007AFF !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transform: none !important;
    box-shadow: inset 0 1px 2px rgba(0, 122, 255, 0.1) !important;
}

/* Apple 스타일 호버 효과 */
.nav-btn:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1d1d1f !important;
    border-radius: 12px !important;
    transform: none !important;
}

/* 버튼 내부 아이콘과 텍스트의 배경을 투명하게 */
.nav-btn i,
.nav-btn span {
    background: transparent !important;
    background-color: transparent !important;
}

/* 버튼들을 회색 계열로 */
.profile-edit-btn {
    background: #e9ecef !important;
    color: #495057 !important;
    border-color: #ced4da !important;
}

.profile-edit-btn:hover {
    background: #dee2e6 !important;
}

.btn-outline {
    background: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #ced4da !important;
}

.btn-outline:hover {
    background: #e9ecef !important;
    color: #495057 !important;
    border-color: #adb5bd !important;
}

.btn-danger {
    background: #dc3545 !important;
    color: white !important;
}

.btn-danger:hover {
    background: #c82333 !important;
}

/* 아바타를 회색 계열로 */
.avatar-circle {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: white !important;
}

/* 최고 우선순위 - 프로필 페이지 전체 폭 사용 강제 적용 */
.account-settings-container {
    max-width: none !important;
    width: 100% !important;
}

.account-settings-container .settings-content {
    width: 100% !important;
    max-width: none !important;
}

.account-settings-container .settings-main {
    width: 100% !important;
    max-width: none !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* 사이드바 최소화 */

/* 최종 강제 규칙 - 모든 우선순위보다 높음 */
body .account-settings-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
}

body .account-settings-container .settings-content {
    width: 100% !important;
    max-width: none !important;
}

body .account-settings-container .settings-main {
    width: 100% !important;
    max-width: none !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 80px !important; /* 메인 영역에만 여백 적용 */
}




/* Drag and drop states */
.upload-area.dragover,
.upload-area.drag-over {
    border-color: #1976d2;
    background-color: #e3f2fd;
    transform: scale(1.02);
    transition: all 0.2s ease;
}
