* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header-content h1 {
    color: #1e3c72;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header-content h1 i {
    margin-right: 15px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.main-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.upload-section {
    margin-bottom: 40px;
}

.drop-zone {
    border: 3px dashed #1e3c72;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    background-color: #f0f4f8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    border-color: #2a5298;
    background-color: #e8f0f7;
    transform: translateY(-2px);
}

.drop-zone.highlight {
    border-color: #1e3c72;
    background-color: #d4e4f7;
    box-shadow: 0 0 20px rgba(30, 60, 114, 0.3);
}

.drop-icon {
    font-size: 3em;
    color: #1e3c72;
    margin-bottom: 15px;
}

.drop-zone h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.text-muted {
    color: #999;
    font-size: 0.95em;
}

.drop-zone input[type="file"] {
    padding: 10px;
    cursor: pointer;
    margin-top: 20px;
}

.drop-zone p {
    margin: 10px 0;
    color: #666;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
}

.btn-secondary {
    background: #dce7f0;
    color: #1e3c72;
    padding: 8px 20px;
    font-size: 0.9em;
}

.btn-secondary:hover {
    background: #c8d9e8;
}

.uml-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.button-group {
    display: flex;
    gap: 10px;
}

.section-header h2 {
    color: #333;
    font-size: 1.8em;
}

.section-header h2 i {
    color: #1e3c72;
    margin-right: 10px;
}

#umlContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    #umlContainer {
        grid-template-columns: 1fr;
    }
}

.uml-box {
    background: white;
    border: 2px solid #dce7f0;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.uml-box:hover {
    box-shadow: 0 15px 30px rgba(30, 60, 114, 0.2);
    transform: translateY(-5px);
    border-color: #1e3c72;
}

.uml-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    font-weight: bold;
    padding: 15px;
    font-size: 1.3em;
}

.uml-section {
    border-top: 1px solid #dce7f0;
    padding: 15px;
    white-space: pre;
    font-size: 1em;
    line-height: 1.8;
    color: #333;
}

.uml-section:last-child {
    background: #f5f8fc;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.8em;
    }

    .main-content {
        padding: 20px;
    }

    #umlContainer {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
