@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out;
}
 
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #13161b;
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
    scroll-behavior: smooth;
    background-image: linear-gradient(to bottom right, #13161b, #1e232a);
}

.preset-container {
    background-color: #1e232a;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

.preset-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #35617e, #4278a0);
    border-radius: 3px;
}

.preset-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: flex;
    text-align: center;
    background: linear-gradient(45deg, #fff, #a3c1d8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.preset-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.info-item {
    font-size: 1rem;
    padding: 10px;
    margin: 0;
    background-color: rgba(19, 22, 27, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: 80%;
    margin: 0 auto;
    cursor: pointer;
}

.info-item:hover {
    transform: translateY(-3px);
    background-color: rgba(19, 22, 27, 0.8);
}

.info-label, .info-value {
    text-align: center;
    flex: 1;
} */

.preset-status {
    font-size: 1.2rem;
    text-align: center;
    margin: auto;
    padding: 15px;
    border-radius: 12px;
    width: 80%;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.preset-status:hover {
    transform: scale(1.05);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.action-btn svg {
    transition: transform 0.3s ease;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.5s ease;
    border-radius: 50px;
}

.action-btn:hover::before {
    transform: scale(1);
}

.action-btn:hover {
    transform: translateY(-7px);
}

.action-btn:hover svg {
    transform: scale(1.2);
}

#download-dwp {
    background: linear-gradient(45deg, #88f1ff, #b600fe);
    color: #fff;
}

#download-dwp:hover {
    background: linear-gradient(45deg, #00f2fe, #9b4ffe);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.4);
}

#request-dwp {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: #333;
}

#request-dwp:hover {
    background: linear-gradient(45deg, #fad0c4, #ff9a9e);
    box-shadow: 0 10px 20px rgba(255, 154, 158, 0.4);
}

#upload-dwp {
    background: linear-gradient(45deg, #a18cd1, #fbc2eb);
    color: #333;
}

#upload-dwp:hover {
    background: linear-gradient(45deg, #fbc2eb, #a18cd1);
    box-shadow: 0 10px 20px rgba(161, 140, 209, 0.4);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #13161b;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    height: 70%;
    position: relative;
    margin: 20px;
    line-height: 1.6;
    font-size: 1rem;
    overflow-y: scroll;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: #13161b;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #35617e;
    border-radius: 10px;
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(45deg, #fff, #82a6c4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-content p.centered {
    color: #aaa;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-content ul {
    list-style: none;
    padding-left: 0;
    margin-left: 2px;
}

.modal-content li {
    margin-bottom: 12px;
    margin-left: 15px;
    position: relative;
}

.modal-content li::before {
    content: "•";
    color: #82a6c4;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.modal-content ul ul {
    padding-left: 20px;
    margin-top: 10px;
}

.modal-content ul ul li::before {
    content: "◦";
}

.modal-content strong {
    color: #82a6c4;
    font-weight: 700;
}

.agreement-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

button.agree {
    background-color: #35617e;
    color: #fff;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#agreeYes {
    background: linear-gradient(45deg, #0fd850, #39db34);
}

#agreeYes:hover {
    background: linear-gradient(45deg, #39db34, #0fd850);
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 0 20px rgba(144, 238, 144, 0.8), 0 0 30px rgba(124, 252, 0, 0.6);
}

#agreeNo {
    background: linear-gradient(45deg, #ff416c, #db3434);
}

#agreeNo:hover {
    background: linear-gradient(45deg, #db3434, #ff416c);
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.8), 0 0 30px rgba(219, 52, 52, 0.6);
}

#loading-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-gif {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 700px;
    min-width: 100px;
    max-height: 700px;
    min-height: 100px;
    aspect-ratio: 1/1;
    filter: drop-shadow(0 0 15px rgba(82, 166, 196, 0.8));
}

#upload-p {
    font-size: 1.5rem;
    margin-top: 40%;
    text-shadow: 0 0 10px rgba(82, 166, 196, 0.8);
    color: #fff;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.dwp-status-available {
    display: none;
    background: transparent;
    color: #39db34;
}

.dwp-status-unavailable {
    display: none;
    background: transparent;
    color: #db3434;
}

#expansion-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .preset-container {
        padding: 25px;
    }
    
    .preset-title {
        font-size: 2.2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .agreement-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    button.agree {
        width: 80%;
    }
}