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

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
    background: #e0eafc;
    background: -webkit-linear-gradient(to right, rgb(126, 171, 255), #e0eafc);
    background: linear-gradient(to right, rgb(126, 171, 255), #e0eafc);
    padding: 20px;
}

.name {
    display: flex;
    align-items: baseline;
    margin-bottom: 30px;
    text-align: center;
}

.name h1 {
    font-size: 2.5rem;
    color: #3172ff;
    font-weight: 700;
}

.name h2 {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    margin-left: 5px;
}

.container {
    max-width: 750px;
    width: 100%;
    padding: 35px;
    background: #fff;
    border-radius: 20px;
    box-shadow: rgba(148, 157, 165, 0.25) 0 15px 30px;
}

h3 {
    margin-bottom: 25px;
    font-weight: 500;
    color: #333;
    font-size: 1.3rem;
}

.drag-area {
    height: 350px;
    border: 3px dashed #a0c1ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 10px auto 25px;
    position: relative;
    transition: all 0.3s ease;
    background: #f8fbff;
}

.drag-area.active {
    border-color: #3172ff;
    background: #f0f7ff;
}

.drag-area .icon {
    font-size: 70px;
    color: rgb(49, 114, 255);
    margin-bottom: 20px;
}

.drag-area .header {
    font-size: 22px;
    font-weight: 500;
    color: #34495e;
    margin: 5px 0;
}

.drag-area .support {
    font-size: 14px;
    color: #777;
    margin: 15px 0;
}

.drag-area .button {
    font-size: 22px;
    font-weight: 600;
    color: rgb(49, 114, 255);
    cursor: pointer;
    transition: color 0.3s;
}

.drag-area .button:hover {
    color: #1a56db;
    text-decoration: underline;
}

/* Progress Bar */
.progress-container {
    width: 80%;
    background: #e0eafc;
    border-radius: 10px;
    height: 10px;
    margin: 20px 0;
    display: none;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, rgb(126, 171, 255), #3172ff);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    right: -40px;
    top: -5px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* File Info */
.file-info {
    display: none;
    align-items: center;
    background: #f0f7ff;
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #c1d7ff;
    width: 80%;
}

.file-info i {
    color: #3172ff;
    margin-right: 10px;
    font-size: 18px;
}

.file-info span {
    color: #333;
    font-size: 16px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-btn {
    cursor: pointer;
    color: #ff4757;
    margin-left: 10px;
    font-size: 16px;
    transition: color 0.3s;
}

.remove-btn:hover {
    color: #ff2e43;
}

/* Controls */
.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.control-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0eafc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.control-group select:focus {
    outline: none;
    border-color: #3172ff;
}

.summarize-btn {
    flex: 0 0 auto;
    align-self: flex-end;
    padding: 14px 30px;
    background: linear-gradient(to right, rgb(126, 171, 255), #3172ff);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    height: fit-content;
}

.summarize-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.summarize-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 114, 255, 0.3);
}

/* Results Section */
.results-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3172ff;
}

.copy-btn {
    background: #f0f7ff;
    border: 2px solid #c1d7ff;
    color: #3172ff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #3172ff;
    color: white;
    transform: scale(1.05);
}

.summary-box {
    background: #f8fbff;
    border: 2px solid #e0eafc;
    border-radius: 12px;
    padding: 25px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    position: relative;
}

.summary-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    display: none;
}

.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    height: 100%;
}

.placeholder i {
    font-size: 50px;
    color: #c1d7ff;
    margin-bottom: 15px;
}

.placeholder p {
    font-size: 16px;
    max-width: 300px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    background: #f0f7ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat i {
    font-size: 24px;
    color: #3172ff;
}

.stat span {
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.stat span span {
    font-weight: 700;
    color: #3172ff;
}

/* Actions */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-btn {
    padding: 14px 30px;
    background: linear-gradient(to right, rgb(126, 171, 255), #3172ff);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.action-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 114, 255, 0.3);
}

.action-btn.secondary {
    background: #f0f7ff;
    color: #3172ff;
    border: 2px solid #c1d7ff;
}

.action-btn.secondary:hover {
    background: #3172ff;
    color: white;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e0eafc;
    border-top: 5px solid #3172ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: #3172ff;
    font-size: 18px;
    font-weight: 600;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3172ff;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    animation: slideIn 0.3s ease;
    z-index: 1001;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .control-group {
        min-width: 100%;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .drag-area {
        height: 300px;
    }
    
    .name h1 {
        font-size: 2rem;
    }
}