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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* 네브바 스타일은 fragments/navbar.html에서 관리 */

/* 메인 콘텐컨테너 */
.container {
    max-width: 1200px;
    margin: 1rem auto 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

/* 메인 이지 카드 그리??*/
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-grid-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    min-height: 180px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e3a8a;
}

.card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.disabled:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.05);
}

.disabled .card-icon {
    transform: none !important;
}

/* 이지 목 */
.page-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-title p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

/* 터 치*/
.footer {
    background-color: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    padding: 2rem 0 1rem;
    color: #555;
    margin-top: auto;
    font-size: 0.85rem;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.footer-logo strong {
    font-size: 1.1rem;
    color: #1e3a8a;
    margin-bottom: 0.2rem;
}

.footer-logo span {
    color: #666;
    font-size: 0.8rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

.footer-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.2rem 0;
}

.footer-links a:hover {
    color: #1e3a8a;
}

.footer-copyright {
    border-top: 1px solid #e5e5e5;
    padding-top: 1rem;
    text-align: center;
}

.footer-copyright p {
    color: #999;
    font-size: 0.8rem;
}

/* 반응???자??- ?블*/
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .hero-container {
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-text {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-title {
        text-align: center !important;
    }
    
    .hero-stats {
        justify-content: center !important;
        align-items: center !important;
        flex-direction: row !important;
        gap: 1.5rem !important;
    }
    
    /* 시스템 안정성 항목 숨김 */
    .hero-stats .stat-item:last-child {
        display: none !important;
    }

    .gradient-text {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .page-title p {
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.2rem;
    }

    .card-grid-bottom {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
    }

    .card {
        min-height: 160px;
        padding: 1.5rem 1rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-description {
        font-size: 0.85rem;
    }
}

/* 반응???자??- 모바*/
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .hero-section {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }

    .gradient-text {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        flex-direction: row !important;
        gap: 1.5rem;
        margin-top: 2rem;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    /* 시스템 안정성 항목 숨김 */
    .hero-stats .stat-item:last-child {
        display: none !important;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        padding: 2rem;
        margin: 1rem;
        border: none;
        box-shadow: none;
    }

    .hero-image-container {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: auto;
    }

    .modern-network {
        width: 100%;
        height: 100%;
        position: relative;
        background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .hub-core {
        width: 60px;
        height: 60px;
    }

    .hub-core i {
        font-size: 1.5rem;
    }

    .pulse-ring {
        width: 60px;
        height: 60px;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .floating-icon i {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .additional-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* 네브바 스타일은 fragments/navbar.html에서 관리 */

    .container {
        margin: 1rem auto;
        padding: 0 0.8rem;
    }

    .page-title {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }

    .page-title h1 {
        font-size: 1.8rem;
    }

    .page-title p {
        font-size: 0.9rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-grid-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        min-height: 140px;
        padding: 1.5rem 1rem;
    }

    .card-icon {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .card-description {
        font-size: 0.8rem;
    }

    .footer {
        padding: 1.5rem 0 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-info, .footer-links {
        margin-bottom: 0;
    }

    .footer-links h4 {
        margin-bottom: 0.5rem;
    }
}

/* 반응???자??- ?형 모바*/
@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }

    .gradient-text {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-card .card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

    /* 네브바 스타일은 fragments/navbar.html에서 관리 */
    
    .container {
        padding: 0 0.5rem;
    }
    
    .page-title h1 {
        font-size: 1.5rem;
    }

    .page-title p {
        font-size: 0.85rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .card {
        min-height: 120px;
        padding: 1.2rem 0.8rem;
    }

    .card-icon {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.75rem;
    }

    .footer {
        padding: 1rem 0 0.5rem;
    }

    .footer-container {
        padding: 0 0.8rem;
    }

    .footer-logo strong {
        font-size: 1.1rem;
    }

    .footer-links h4 {
        font-size: 0.9rem;
    }

    .hero-image-container {
        position: relative !important;
        right: auto !important;
        width: 100% !important;
        height: 200px;
    }

    .modern-network {
        width: 100%;
        height: 100%;
        position: relative;
        background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .hub-core {
        width: 60px;
        height: 60px;
    }

    .hub-core i {
        font-size: 1.5rem;
    }

    .pulse-ring {
        width: 60px;
        height: 60px;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .floating-icon i {
        font-size: 1rem;
    }

    .image-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .overlay-content h3 {
        font-size: 1.1rem;
    }

    .overlay-content p {
        font-size: 0.8rem;
    }
}

/* Hero 션 */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    display: block;
    max-width: 600px;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 3rem;
    border: none;
    box-shadow: none;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.gradient-text {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a5c7fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    display: block;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #f1f5f9;
    margin-bottom: 3rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
}

.stat-label {
    font-size: 0.9rem;
    color: #f1f5f9;
    margin-top: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-visual {
    display: none;
}

.modern-network {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hub-core {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.4);
    position: relative;
    z-index: 4;
}

.hub-core i {
    font-size: 2.5rem;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(96, 165, 250, 0.6);
    border-radius: 50%;
    animation: pulseRing 3s ease-out infinite;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(30, 58, 138, 0.9);
    border: 2px solid rgba(96, 165, 250, 0.7);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.floating-icon i {
    font-size: 1.5rem;
    color: #60a5fa;
}

.connection-path {
    fill: none;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: dash 3s linear infinite;
    opacity: 0.7;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(96, 165, 250, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    animation: float 20s ease-in-out infinite;
}

.central-hub {
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translate(50%, -50%);
    z-index: 3;
}

.pulse-delay-1 {
    animation-delay: 1s;
}

.pulse-delay-2 {
    animation-delay: 2s;
}

.floating-icon:hover {
    background: rgba(30, 58, 138, 1);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.connection-svg {
    width: 100%;
    height: 100%;
}

/* 애니메이션 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10px, -5px); }
    66% { transform: translate(-5px, 10px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-8px, 8px); }
    66% { transform: translate(8px, -8px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(12px, 5px); }
    66% { transform: translate(-10px, -5px); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-12px, -8px); }
    66% { transform: translate(8px, 12px); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(8px, -12px); }
    66% { transform: translate(-8px, 8px); }
}

@keyframes float6 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-10px, 10px); }
    66% { transform: translate(10px, -8px); }
}

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

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    z-index: 4;
}

.overlay-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* 메인 기능 션 */
.main-features {
    padding: 2rem 0 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

/* 주요 기능 카드 그리??*/
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-gradient-start), var(--card-gradient-end));
    transition: all 0.3s ease;
}

.feature-card.primary {
    --card-gradient-start: #3b82f6;
    --card-gradient-end: #1d4ed8;
}

.feature-card.secondary {
    --card-gradient-start: #10b981;
    --card-gradient-end: #059669;
}

.feature-card.accent {
    --card-gradient-start: #f59e0b;
    --card-gradient-end: #d97706;
}

.feature-card.info {
    --card-gradient-start: #8b5cf6;
    --card-gradient-end: #7c3aed;
}

.feature-card.success {
    --card-gradient-start: #10b981;
    --card-gradient-end: #059669;
}

.feature-card.warning {
    --card-gradient-start: #f59e0b;
    --card-gradient-end: #d97706;
}

.feature-card.danger {
    --card-gradient-start: #ef4444;
    --card-gradient-end: #dc2626;
}

.feature-card.disabled {
    --card-gradient-start: #6b7280;
    --card-gradient-end: #4b5563;
    opacity: 0.6;
    cursor: not-allowed;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--card-gradient-start);
}

.feature-card:hover::before {
    height: 8px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--card-gradient-start), var(--card-gradient-end));
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.card-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-arrow {
    align-self: flex-end;
    margin-top: 1rem;
    color: var(--card-gradient-start);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .card-arrow {
    transform: translateX(4px);
}

/* 추 기능 션 */
.additional-features {
    margin-top: 3rem;
}

.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2rem;
    text-align: center;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.additional-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.additional-card:hover:not(.disabled) {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.additional-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    color: #6b7280;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.additional-card.success .card-icon {
    background: #dcfce7;
    color: #16a34a;
}

.additional-card.info .card-icon {
    background: #dbeafe;
    color: #2563eb;
}

.additional-card.danger .card-icon {
    background: #fef2f2;
    color: #dc2626;
}

.additional-card .card-content {
    flex: 1;
}

.additional-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.additional-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.coming-soon {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.additional-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.additional-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e5e7eb;
}

/* 아이콘 위치 - 텍스트 영역을 피해 오른쪽에 배치 */
.icon-1 {
    top: 10%;
    right: 15%;
    animation: float1 6s ease-in-out infinite;
}

.icon-2 {
    top: 30%;
    right: 5%;
    animation: float2 7s ease-in-out infinite;
}

.icon-3 {
    bottom: 15%;
    right: 30%;
    animation: float3 8s ease-in-out infinite;
}

.icon-4 {
    bottom: 10%;
    right: 8%;
    animation: float4 6.5s ease-in-out infinite;
}

.icon-5 {
    top: 55%;
    right: 35%;
    animation: float5 7.5s ease-in-out infinite;
}

.icon-6 {
    top: 25%;
    right: 40%;
    animation: float6 8.5s ease-in-out infinite;
}

.connection-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.connection-svg {
    width: 100%;
    height: 100%;
}

.delete-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.confirmation-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}
        
.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #10b981;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
    color: #991b1b;
    border: 2px solid #dc2626;
}

/* 데이터 삭제 페이지 전용 스타일 */
.delete-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.school-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.school-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.school-card:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
}

.school-card.selected {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.school-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.school-card.selected::before {
    transform: scaleX(1);
}

.school-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    text-align: center;
}

.school-info {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 15px;
}

.action-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

/* 데이터 삭제 옵션 스타일 */
.delete-options-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.delete-type-selector {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.radio-wrapper {
    display: flex;
    align-items: center;
}

.radio-wrapper input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-wrapper label {
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
}

.selective-options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.checkbox-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.checkbox-item label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item label i {
    color: #1e3a8a;
}

.school-card.selected {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.school-card .school-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

/* 평면도 관리 시스템 - 선택된 요소 스타일 */
.draggable.selected {
    outline: 2px solid #ef4444 !important;
    outline-offset: -1px !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5) !important;
    z-index: 10;
}

/* 기존 테두리 스타일을 보존하면서 선택 효과 적용 */
.building.selected,
.room.selected {
    /* outline을 사용하여 테두리 위에 선택 표시 추가 */
    outline: 2px solid #ef4444 !important;
    outline-offset: -1px !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5) !important;
    z-index: 10;
    /* border 속성은 수정하지 않음 */
}

/* 다중 선택된 요소 스타일 */
.draggable.multi-selected {
    outline: 2px solid #3b82f6 !important;
    outline-offset: -1px !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5) !important;
    z-index: 10;
}

/* 기존 테두리 스타일을 보존하면서 다중 선택 효과 적용 */
.building.multi-selected,
.room.multi-selected {
    /* outline을 사용하여 테두리 위에 선택 표시 추가 */
    outline: 2px solid #3b82f6 !important;
    outline-offset: -1px !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5) !important;
    z-index: 10;
    /* border 속성은 수정하지 않음 */
}

/* 이름박스 스타일 개선 */
.name-box { 
    position: absolute;
    padding: 4px 8px;
    background-color: #ffffff;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s ease;
    pointer-events: auto;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 14px;
    color: #1e3a8a;
    font-weight: 500;
    min-width: 30px;
    min-height: 20px;
}

.name-box.movable { 
    border: 2px dashed #3b82f6;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    cursor: move;
    animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
    0% { border-color: #3b82f6; }
    50% { border-color: #60a5fa; }
    100% { border-color: #3b82f6; }
}

.name-box.movable:active {
    cursor: grabbing;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.name-box-resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border: 2px solid #ffffff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.name-box.movable .name-box-resize-handle {
    opacity: 1;
}

.name-box-resize-handle.se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

/* 평면도 관련 스타일 */
.canvas-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 500px;
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

#canvasContent {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
}

.draggable {
    position: absolute;
    cursor: move;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    contain: layout paint; /* 레이아웃과 페인팅 최적화 */
}

.building {
    background-color: rgba(200, 200, 200, 0.2);
    contain: layout paint; /* 레이아웃과 페인팅 최적화 */
}

.room {
    background-color: rgba(16, 185, 129, 0.2);
    transition: border 0.2s ease; /* 단순화된 transition */
    contain: layout paint; /* 레이아웃과 페인팅 최적화 */
}

/* 교실 요소 강조 효과 - 단순화 */
.room:hover {
    border: 2px solid #4f46e5;
    box-shadow: none !important;
    z-index: auto !important;
    transition: border 0.2s ease;
}

/* 건물 내부 교실 강조 효과 - 단순화 */
.building .room:hover {
    border: 2px solid #ff6b6b;
    box-shadow: none !important;
    z-index: auto !important;
    transition: border 0.2s ease;
}

/* 교실 목록에서 선택된 교실 하이라이트 효과 */
.highlight-room {
    animation: pulse-highlight 2s ease;
    box-shadow: 0 0 0 4px #ff6b6b, 0 0 15px rgba(255, 107, 107, 0.8) !important;
    z-index: 1000 !important;
}

@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.8);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
        transform: scale(1);
    }
}

/* 선택된 교실 스타일 */
.room.selected {
    outline: 2px dashed #4f46e5;
    outline-offset: 2px;
    z-index: 900;
}

/* 도형 요소 스타일 */
.shape {
    position: absolute;
    cursor: move;
    contain: layout paint; /* 레이아웃과 페인팅 최적화 */
}

.shape.line {
    height: 0;
    border-top-style: solid;
    transform-origin: 0 0;
}

/* 도형 선택 시 스타일 - 원본 스타일 유지하면서 선택 표시 */
.shape.selected {
    outline: 2px dashed #4f46e5;
    outline-offset: 2px;
    /* 도형의 원본 스타일이 유지되도록 함 */
}

/* 도형 호버 효과 - 단순화 */
.shape:hover {
    border: 2px solid rgba(79, 70, 229, 0.5);
    box-shadow: none !important;
    z-index: auto !important;
    transition: border 0.2s ease;
}

/* 장비 아이콘 스타일 */
.room-devices {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
    z-index: 10;
    contain: layout paint; /* 레이아웃과 페인팅 최적화 */
}

.device-icon {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 1px 3px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
    overflow: hidden;
    contain: layout paint; /* 레이아웃과 페인팅 최적화 */
}

.device-icon i {
    font-size: 8px;
    width: 8px;
    text-align: center;
}

.device-count {
    font-size: 8px;
    font-weight: 500;
    color: #333;
}

.device-overflow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 4px;
    background-color: rgba(59, 130, 246, 0.9);
    color: white;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
    min-width: 16px;
    height: 16px;
}

.device-overflow:hover {
    background-color: rgba(59, 130, 246, 1);
}

/* 장비 팝업 스타일 */
.device-popup {
    position: fixed;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 200px;
    font-size: 12px;
}

.device-popup-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.device-popup-item i {
    width: 12px;
    text-align: center;
    font-size: 10px;
}

/* 장비 아이콘 색상 */
.device-icon.desktop i { color: #2563eb; }
.device-icon.monitor i { color: #059669; }
.device-icon.laptop i { color: #7c3aed; }
.device-icon.printer i { color: #dc2626; }
.device-icon.projector i { color: #ea580c; }
.device-icon.tv i { color: #be185d; }
.device-icon.speaker i { color: #0891b2; }
.device-icon.network i { color: #65a30d; }
.device-icon.default i { color: #6b7280; }

/* 교실 내 장비 영역이 교실 경계를 벗어나지 않도록 */
.room {
    position: relative;
    overflow: hidden;
}

.room .room-devices {
    pointer-events: auto;
}

/* 이름박스가 장비 영역과 겹치지 않도록 */
.name-box {
    z-index: 20;
    pointer-events: auto;
}

/* 모바일/테블릿 최적화 - Hero 섹션 그래픽 요소 숨김 */
@media (max-width: 768px) {
    /* Hero 섹션 배경 그래픽 요소 숨김 */
    .hero-image-container,
    .hero-image-container .modern-network,
    .hero-image-container .bg-pattern,
    .hero-image-container .central-hub,
    .hero-image-container .floating-icon,
    .hero-image-container .connection-mesh {
        display: none !important;
    }
    
    /* Hero 설명 텍스트 숨김 */
    .hero-description {
        display: none !important;
    }
    
    /* Hero 섹션 배경 패턴 숨김 */
    .hero-section::before {
        display: none !important;
    }
    
    /* 카드 설명 텍스트 숨김 */
    .feature-card .card-description {
        display: none !important;
    }
    
    /* 카드 태그 숨김 */
    .feature-card .card-features {
        display: none !important;
    }
    
    /* 카드 화살표 숨김 */
    .feature-card .card-arrow {
        display: none !important;
    }
    
    /* 카드 레이아웃 간소화 - 아이콘과 제목만 표시 */
    .feature-card {
        padding: 1.5rem 1rem !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
    }
    
    .feature-card .card-header {
        margin-bottom: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .feature-card .card-badge {
        display: none !important;
    }
    
    .feature-card .card-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        flex: 0 !important;
    }
    
    .feature-card .card-title {
        margin-bottom: 0 !important;
        text-align: center !important;
    }
    
    /* 모바일 (768px 이하) - 2개 열 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 모바일에서 통계 가로 배치 및 시스템 안정성 숨김 */
    .hero-stats {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.5rem !important;
        flex-wrap: wrap !important;
    }
    
    .hero-stats .stat-item:last-child {
        display: none !important;
    }
}

/* 테블릿 (481px ~ 1024px) - 4개 열 */
@media (min-width: 481px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    /* Hero 섹션 중앙 정렬 */
    .hero-container {
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
    }
    
    .hero-content {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-text {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .hero-title {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-stats {
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 2rem !important;
    }
    
    .stat-item {
        text-align: center !important;
    }
    
    /* 테블릿에서 시스템 안정성 숨김 */
    .hero-stats .stat-item:last-child {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* 작은 모바일에서도 동일한 최적화 적용 */
    .hero-image-container,
    .hero-image-container .modern-network,
    .hero-image-container .bg-pattern,
    .hero-image-container .central-hub,
    .hero-image-container .floating-icon,
    .hero-image-container .connection-mesh {
        display: none !important;
    }
    
    .hero-description {
        display: none !important;
    }
    
    .hero-section::before {
        display: none !important;
    }
    
    .feature-card .card-description {
        display: none !important;
    }
    
    .feature-card .card-features {
        display: none !important;
    }
    
    .feature-card .card-arrow {
        display: none !important;
    }
    
    .feature-card {
        padding: 1.2rem 0.75rem !important;
        gap: 0.75rem !important;
    }
    
    .feature-card .card-icon {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.5rem !important;
    }
    
    .feature-card .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0 !important;
    }
    
    /* 작은 모바일에서도 통계 가로 배치 및 시스템 안정성 숨김 */
    .hero-stats {
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
        flex-wrap: wrap !important;
    }
    
    .hero-stats .stat-item:last-child {
        display: none !important;
    }
}
