/* Maydam PDF Tools Suite Pro Styles */
.maydam-box {
    max-width: 720px;
    margin: 24px auto;
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

.maydam-box h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.3;
    color: #111827;
    font-weight: 700;
}

.maydam-box p {
    margin: 0 0 20px;
    color: #6b7280;
    line-height: 1.6;
    font-size: 16px;
}

.maydam-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 0 0 24px;
}

.maydam-info p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

/* Form stilleri */
.maydam-form .row {
    width: 100%;
    box-sizing: border-box;
    display: block;
    position: relative;
    margin: 0 0 16px;
    padding: 0;
}

.maydam-form input[type="file"] {
    padding: 16px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    background: #f9fafb;
    transition: all 0.3s ease;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
    display: block;
}

.maydam-form input[type="file"]:hover {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.maydam-form input[type="file"]:focus {
    border-color: #111827;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

/* Input stilleri */
.maydam-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.maydam-input:focus {
    border-color: #111827;
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.maydam-input::placeholder {
    color: #9ca3af;
}

.maydam-btn {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.maydam-btn:hover {
    background: #0b1220;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.maydam-btn:active {
    transform: translateY(0);
}

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

.maydam-btn:disabled:hover {
    background: #9ca3af;
    transform: none;
}

/* Mesaj stilleri */
.maydam-messages {
    margin-top: 16px;
    min-height: 20px;
}

.maydam-results {
    margin-top: 16px;
}

.maydam-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.maydam-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.maydam-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Download links */
.maydam-download-link {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #111827;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    margin: 8px 8px 8px 0;
    transition: all 0.3s ease;
    font-size: 14px;
}

.maydam-download-link:hover {
    background: #111827;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.maydam-download-link:before {
    content: "⬇️";
    margin-right: 8px;
    font-size: 12px;
}

/* Toplu indirme butonu */
.maydam-zip-download {
    background: #10b981 !important;
    color: #fff !important;
    border-color: #10b981 !important;
    margin-bottom: 16px;
    font-size: 16px;
    padding: 12px 20px;
}

.maydam-zip-download:hover {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
}

.maydam-zip-download:before {
    content: "📦";
    margin-right: 8px;
    font-size: 14px;
}

/* Loading overlay */
#maydam-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

#maydam-overlay .loader {
    width: 56px;
    height: 56px;
    border: 6px solid #f3f4f6;
    border-top-color: #111827;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#maydam-overlay p {
    margin-top: 16px;
    color: #111827;
    font-size: 16px;
    font-weight: 500;
}

#maydam-overlay small {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
}

/* Küçük yazı stilleri */
.maydam-form small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

/* File info */
.maydam-file-info {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    font-size: 14px;
}

.maydam-file-info .file-name {
    font-weight: 600;
    color: #111827;
}

.maydam-file-info .file-size {
    color: #6b7280;
    font-size: 12px;
}

/* Progress bar */
.maydam-progress {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0;
}

.maydam-progress-bar {
    height: 100%;
    background: #111827;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.maydam-success,
.maydam-error,
.maydam-warning {
    animation: fadeIn 0.3s ease;
}

.maydam-download-link {
    animation: slideIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .maydam-box {
        margin: 16px;
        padding: 24px;
    }
    
    .maydam-box h2 {
        font-size: 24px;
    }
    
    .maydam-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .maydam-form input[type="file"] {
        padding: 12px;
    }
    
    .maydam-download-link {
        display: block;
        text-align: center;
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .maydam-box {
        margin: 12px;
        padding: 20px;
    }
    
    .maydam-box h2 {
        font-size: 22px;
    }
    
    .maydam-download-link {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* Tool specific styles */
.maydam-tool-description {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.maydam-tool-description h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.maydam-tool-description p {
    margin: 0;
    opacity: 0.9;
}

/* Feature grid */
.maydam-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.maydam-feature {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.maydam-feature-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.maydam-feature-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.maydam-feature-desc {
    color: #6b7280;
    font-size: 12px;
}