/* Global Styles */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #4f46e5;
    --secondary-color: #64748b;
    --header-bg: #1e293b;
    --sidebar-width: 250px;
    --transition-speed: 0.3s;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&family=Poppins:wght@400;500;600&display=swap');

body {
    font-family: 'Noto Sans KR', 'Poppins', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background-color: var(--header-bg);
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.header h1 a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.header h1 a:hover {
    color: #93c5fd;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: calc(-1 * var(--sidebar-width));
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: white;
    border-right: 1px solid #e2e8f0;
    transition: transform var(--transition-speed) ease;
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 4px 0 6px -1px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    transform: translateX(var(--sidebar-width));
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1.25rem;
    color: var(--header-bg);
    margin: 0;
    font-weight: 500;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    padding: 0.5rem;
    line-height: 1;
}

.close-sidebar:hover {
    color: var(--header-bg);
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color var(--transition-speed) ease;
}

.sidebar-toggle:hover {
    color: #93c5fd;
}

.sidebar ul {
    padding: 1.5rem;
}

.sidebar ul li {
    margin-bottom: 1rem;
}

.sidebar ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all var(--transition-speed) ease;
}

.sidebar ul li a i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background-color: var(--header-bg);
    color: white;
}

/* Main Content Styles */
.main-content {
    transition: margin-left var(--transition-speed) ease;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    background: white;
    overflow: hidden;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--header-bg);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--primary-color);
}

/* Form Styles */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group label {
    font-weight: 500;
    color: var(--header-bg);
    margin-bottom: 0.5rem;
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Result Box Styles */
.result-box {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }

    .sidebar.active {
        transform: translateX(100%);
    }

    .header {
        padding: 0.75rem;
    }

    .header h1 {
        font-size: 1.25rem;
    }

    .card-body {
        padding: 1rem;
    }

    .main-content {
        padding: 0.75rem;
        margin-left: 0 !important;
    }

    .sidebar-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .close-sidebar {
        position: absolute;
        top: 1rem;
        right: 1rem;
        color: var(--header-bg);
        z-index: 1002;
    }

    .sidebar ul li a {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Add overlay when sidebar is active on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

@media (max-width: 768px) {
    .sidebar.active + .sidebar-overlay {
        display: block;
    }
}

/* Share and Controls Box */
.share-box {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.share-box .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Ad Box */
.ad-box {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Global Ad Banner Styles */
.ad-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ad-banner a {
    text-decoration: none;
    color: white;
    display: block;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.banner-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
}

.banner-text p {
    margin: 0 0 10px 0;
    opacity: 0.9;
    font-size: 0.95rem;
    color: #ffffff;
}

.banner-cta {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
    color: #ffffff;
}

.ad-banner:hover .banner-cta {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .banner-icon {
        font-size: 2rem;
    }
    .banner-text h4 {
        font-size: 1.1rem;
    }
    .banner-text p {
        font-size: 0.9rem;
    }
}

/* Image banner variant */
.ad-banner--image {
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.ad-banner--image a { display: block; }
.ad-banner--image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Toast Message */
.toast-message {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--header-bg);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
} 