/* ✅ PDF Manager CSS - Enterprise Grade Styles v2.0 */

/* ✅ Ana sitenin color scheme'ini kullanıyoruz */
:root {
    --primary-color: #0066cc;
    --secondary-color: #1a1a2e;
    --accent-color: #00d4aa;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
}

/* ✅ Ana sitenin header stilini kullanıyoruz */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ✅ Enterprise Security Banner */
.enterprise-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tool-header {
    background: var(--gradient-bg);
    color: white;
    padding: 30px;
    text-align: center;
}

.tool-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tool-header p {
    opacity: 0.9;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.security-features {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-top: 20px;
    border-radius: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.security-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.security-item .icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.security-item h4 {
    margin-bottom: 5px;
    font-size: 1em;
}

.security-item p {
    font-size: 0.9em;
    opacity: 0.9;
}

.main-content {
    padding: 40px;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 20px 25px;
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab.active {
    color: var(--primary-color);
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 102, 204, 0.1);
}

.tab:hover {
    background: rgba(0, 102, 204, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.file-drop-area {
    border: 3px dashed var(--primary-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f2ff 100%);
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-drop-area:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ebff 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.file-drop-area.dragover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #e8fff8 0%, #d4ffed 100%);
    transform: scale(1.02);
}

.drop-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 102, 204, 0.3));
}

.file-drop-area h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.3em;
}

.file-drop-area p {
    color: var(--text-secondary);
    font-size: 1em;
}

.security-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.file-list {
    margin-bottom: 30px;
}

.file-item {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #e9ecef 100%);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1em;
}

.file-size {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-secure {
    background: #d4edda;
    color: #155724;
}

.status-processing {
    background: #fff3cd;
    color: #856404;
}

.action-btn, .clear-btn, .remove-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    background: var(--gradient-bg);
    color: white;
    font-size: 16px;
    padding: 18px 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.action-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.clear-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.remove-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 10px 15px;
}

.remove-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-1px);
}

.settings {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f2ff 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.setting-group {
    margin-bottom: 20px;
}

.setting-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05em;
}

.setting-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.setting-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.compression-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.compression-quality {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.compression-quality::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-bg);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.compression-quality:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.compression-quality:hover::before {
    transform: scaleX(1);
}

.compression-quality.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f2ff 100%);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

.compression-quality.selected::before {
    transform: scaleX(1);
}

.compression-quality h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.compression-quality p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.compression-quality small {
    color: #888;
    font-size: 12px;
    font-weight: 600;
}

.progress {
    margin-top: 25px;
    display: none;
}

.progress-bar {
    background: var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    height: 12px;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    background: var(--gradient-bg);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.3);
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.status {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.status.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
}

.status.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #17a2b8;
    color: #0c5460;
}

.button-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f2ff 100%);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .compression-options {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .action-btn, .clear-btn {
        width: 100%;
        margin: 8px 0;
    }

    .security-features {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .enterprise-banner {
        margin: 10px;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }

    .tool-header {
        padding: 20px;
    }

    .tool-header h1 {
        font-size: 2rem;
        flex-direction: column;
    }
}