/* Inter ÆùÆ® Á¤ÀÇ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/inter-300.woff2') format('woff2'),
         url('assets/fonts/inter-300.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-400.woff2') format('woff2'),
         url('assets/fonts/inter-400.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/inter-500.woff2') format('woff2'),
         url('assets/fonts/inter-500.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/inter-600.woff2') format('woff2'),
         url('assets/fonts/inter-600.woff') format('woff');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/inter-700.woff2') format('woff2'),
         url('assets/fonts/inter-700.woff') format('woff');
}

/* Font Awesome ·ÎÄÃ ¹öÀüÀ¸·Î º¯°æ */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("assets/fonts/fontawesome-free-6.4.0-web/webfonts/fa-solid-900.woff2") format("woff2"),
       url("assets/fonts/fontawesome-free-6.4.0-web/webfonts/fa-solid-900.ttf") format("truetype");
}
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #4cc9f0;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--light);
    min-height: 100vh;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.app-header h1 {
    font-size: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-controls {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.icon-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.simulator-container {
    display: flex;
    gap: 25px;
    flex: 1;
}

.control-panel {
    flex: 0 0 350px;
    padding: 25px;
    border-radius: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.glassmorphism {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.panel-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h2 {
    font-size: 1.3rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-display {
    font-weight: 600;
    color: var(--accent);
    margin-left: auto;
}

.slider-container {
    position: relative;
    margin-bottom: 15px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    padding: 0;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 15px;
    padding-right: 35px;
    border-radius: 8px;
    border: none;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 0.95rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-wrapper select:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.7);
}

.angle-display {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.angle-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.angle-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 5px;
}

.visualization-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.fov-visualization, .scene-preview {
    padding: 20px;
}

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

.viz-header h3, .preview-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.viz-controls {
    display: flex;
    gap: 8px;
}

.viz-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viz-btn:hover {
    background: rgba(0, 0, 0, 0.3);
}

.viz-btn.active {
    background: var(--primary);
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.3);
}

.zoom-value {
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.fov-graphic {
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.preview-content {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.preview-content img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.fov-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(67, 97, 238, 0.15) 0%, rgba(67, 97, 238, 0) 50%);
    pointer-events: none;
}

.fov-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 60%;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.7;
}

.app-footer {
    margin-top: 30px;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 1200px) {
    .simulator-container {
        flex-direction: column;
    }
    
    .control-panel {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .app-header h1 {
        font-size: 1.5rem;
    }
    
    .panel-header h2, .viz-header h3, .preview-header h3 {
        font-size: 1.1rem;
    }
    
    .angle-value {
        font-size: 2.5rem;
    }
    
    .control-panel, .fov-visualization, .scene-preview {
        padding: 15px;
    }
}

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

.control-panel, .fov-visualization, .scene-preview {
    animation: fadeIn 0.5s ease-out forwards;
}

.fov-visualization {
    animation-delay: 0.1s;
}

.scene-preview {
    animation-delay: 0.2s;
}
/* ¡å¡å¡å Ãß°¡µÈ ½ºÅ¸ÀÏ ¡å¡å¡å */
#focal-value small {
    font-size: 0.7em;
    color: var(--accent);
    opacity: 0.8;
    margin-left: 5px;
    font-weight: 400;
}
/* ½½¶óÀÌ´õ ½ºÅ¸ÀÏ Ãß°¡ */
input[type="range"] {
  background: linear-gradient(
    to right,
    #4361ee 0%, 
    #4361ee 20%,  /* 8~24mm ±¸°£ */
    #ddd 20%,
    #ddd 100%
  );
}