/* NetPack Tools Styles */

.tools-header {
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tools-section {
    padding: 80px 20px;
    margin: 0 auto;
}
.tools-hero-stats {
	display: flex;
	justify-content: center;
}
.stat-item {
	margin: 15px;
}

.tools-container {
    margin-bottom: 60px;
}

.tool-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2.2em;
    color: #333 !important;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.category-title i {
    color: #667eea;
    font-size: 0.9em;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
    text-decoration: none;
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-icon i {
    font-size: 2em;
    color: white;
}

.tool-card h3 {
    font-size: 1.4em;
    color: #333 !important;
    margin-bottom: 15px;
    font-weight: 600;
}

.tool-card p {
    color: #666 !important;
    line-height: 1.6;
    margin: 0;
}

/* Ad Container */
.ad-container {
    text-align: center;
    margin: 60px 0;
    padding: 25px;
    min-height: 140px;
}

.ad-banner {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px;
    margin: 0 auto;
    max-width: 728px;
}

.ad-placeholder {
    color: #6c757d;
    font-size: 1.1em;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #667eea;
}

/* Tool Content Styles */
.tool-interface {
    padding: 40px;
}

.tool-interface h2 {
    color: #333 !important;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

.tool-section {
    margin-bottom: 30px;
}

.tool-section h3 {
    color: #667eea !important;
    margin-bottom: 15px;
    font-size: 1.2em;
}

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

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

/* Ensure labels are visible in dark mode */
body.dark-mode .input-group label {
    color: #e2e8f0;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #fff;
    color: #333;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
}

.input-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.input-group select option {
    background: #fff;
    color: #333;
    padding: 8px 12px;
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.result-area {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    min-height: 100px;
}

.result-area.success {
    border-color: #28a745;
    background: #d4edda;
}

.result-area.error {
    border-color: #dc3545;
    background: #f8d7da;
}

/* File Upload Styles */
.file-upload {
    border: 2px dashed #667eea;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-upload:hover {
    border-color: #764ba2;
    background: #f0f4ff;
}

.file-upload.dragover {
    border-color: #28a745;
    background: #d4edda;
}

.file-upload i {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.file-upload:hover i {
    transform: scale(1.1);
}

.file-upload p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
    font-weight: 500;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

/* Progress Bar */
.progress {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* Color Picker Specific */
.color-preview {
    width: 100px;
    height: 100px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin: 20px auto;
    cursor: pointer;
}

.color-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* QR Code Specific */
.qr-preview {
    text-align: center;
    margin: 20px 0;
}

.qr-preview canvas {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    max-width: 100%;
}

/* Dark Mode Styles - Handled by dark.css file */

/* Responsive Design */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .category-title {
        font-size: 1.8em;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .tool-interface {
        padding: 20px;
    }
    
    .color-values {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tools-section {
        padding: 40px 15px;
    }
    
    .tool-card {
        padding: 15px;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
    }
    
    .tool-icon i {
        font-size: 1.5em;
    }
    
    .category-title {
        font-size: 1.5em;
    }
}

/* Additional select styling for better browser compatibility */
.input-group select {
    /* Ensure text is always visible */
    color: #333 !important;
    background-color: #fff !important;
}

/* Dark mode styles handled by dark.css file */
/* Comprehensive text color fixes */
.tools-section h1,
.tools-section h2,
.tools-section h3,
.tools-section h4,
.tools-section h5,
.tools-section h6 {
    color: #333 !important;
}

.tools-section p,
.tools-section span,
.tools-section div {
    color: #666 !important;
}

/* Modal content text fixes */
.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4,
.modal-content h5,
.modal-content h6 {
    color: #333 !important;
}

.modal-content p,
.modal-content span,
.modal-content div {
    color: #666 !important;
}

/* Tool interface specific fixes */
.tool-interface * {
    color: inherit;
}

.tool-interface h2 {
    color: #333 !important;
}

.tool-interface h3 {
    color: #667eea !important;
}

.tool-interface p {
    color: #666 !important;
}

.tool-interface label {
    color: #333 !important;
}

/* Dark mode comprehensive fixes - handled by dark.css file */

/* Button text fixes */
.btn {
    color: white !important;
}

/* Ensure all text elements have proper contrast */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Security Modal Styles */
.security-modal {
    display: block;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: securityModalFadeIn 0.3s ease;
}

@keyframes securityModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.security-modal-content {
    background-color: #fff;
    margin: 10% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: securityModalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes securityModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.security-modal-content.warning {
    border-left: 5px solid #ff9800;
}

.security-modal-content.error {
    border-left: 5px solid #f44336;
}

.security-modal-content.info {
    border-left: 5px solid #2196f3;
}

.security-modal-header {
    padding: 20px 25px 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

.security-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.security-modal-close:hover {
    color: #667eea;
}

.security-modal-body {
    padding: 25px;
}

.security-modal-body p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 1em;
}

.security-modal-footer {
    padding: 15px 25px 25px;
    text-align: right;
}

.security-modal-footer .btn {
    min-width: 80px;
}

/* Dark mode styles for security modal */
body.dark-mode .security-modal-content,
.dark-mode .security-modal-content {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .security-modal-header,
.dark-mode .security-modal-header {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    border-bottom-color: #4a5568;
}

body.dark-mode .security-modal-header h3,
.dark-mode .security-modal-header h3 {
    color: #e2e8f0;
}

body.dark-mode .security-modal-body p,
.dark-mode .security-modal-body p {
    color: #a0aec0;
}

/* Rate limit indicator */
.rate-limit-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    z-index: 1500;
    animation: rateLimitPulse 2s infinite;
}

@keyframes rateLimitPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Security warning styles */
.security-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #856404;
}

.security-warning.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.security-warning i {
    margin-right: 8px;
}

/* Input validation styles */
.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.input-error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
    display: block;
}

.input-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Responsive design for security modal */
@media (max-width: 768px) {
    .security-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .security-modal-header,
    .security-modal-body,
    .security-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .rate-limit-indicator {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 10px 15px;
    }
}

/* AdSense Integration - Match Background Colors */
.adsbygoogle {
    background: transparent !important;
    background-color: transparent !important;
}

.adsense-container {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

/* Ensure ads blend with page background */
ins.adsbygoogle {
    background: transparent !important;
    background-color: transparent !important;
}

/* For any ad containers in tools section */
.tools-section .adsbygoogle,
.tools-section .adsense-container {
    background: transparent !important;
    background-color: transparent !important;
}
/* Enhanced Tools Page Header */
.tools-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4A6BB5 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.tools-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid-tools" width="15" height="15" patternUnits="userSpaceOnUse"><path d="M 15 0 L 0 0 0 15" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid-tools)"/></svg>');
    opacity: 0.4;
}

.tools-header .centerHeader {
    position: relative;
    z-index: 10;
    padding: 150px 20px 100px;
}

.tools-header .centerHeader h1 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    color: #ffffff;
}

.tools-header .tools-brand {
    color: #ffffff;
}

.tools-header .creative {
    color: #FFD700;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.tools-header .h2-subtitle {
    font-size: 1.5em;
    font-weight: 300;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
    color: #ffffff;
}

.tools-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.tools-hero-stats .stat-item {
    text-align: center;
    color: #ffffff;
}

.tools-hero-stats .stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tools-hero-stats .stat-label {
    display: block;
    font-size: 1em;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Enhanced Tools Section */
.tools-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

.tools-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid-tools-section" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(74,107,181,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid-tools-section)"/></svg>');
    opacity: 0.6;
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tool-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, #4A6BB5, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.category-title i {
    color: #4A6BB5;
    margin-right: 15px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(74, 107, 181, 0.1);
    cursor: pointer;
    text-decoration: none;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A6BB5, #667eea, #764ba2);
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
    text-decoration: none;
}

.tool-icon {
    text-align: center;
    margin-bottom: 25px;
}

.tool-icon i {
    font-size: 3.5em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.tool-card p {
    color: #666;
    line-height: 1.6;
    text-align: center;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .tools-header .centerHeader h1 {
        font-size: 2.5em;
    }
    
    .tools-header .h2-subtitle {
        font-size: 1.2em;
    }
    
    .tools-hero-stats {
        gap: 20px;
    }
    
    .tools-hero-stats .stat-number {
        font-size: 2em;
    }
    
    .category-title {
        font-size: 2em;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* SEO-Optimized Individual Tool Pages */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tool-breadcrumb {
    margin-bottom: 30px;
    position: relative;
    z-index: 100;
}

.tool-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 8px 12px;
    cursor: pointer;
    pointer-events: auto;
}

.tool-breadcrumb a:hover {
    color: #4c63d2;
    text-decoration: underline;
}

.tool-interface-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.related-tools {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-tools h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.related-tools .tool-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-tools .tool-card:hover {
    transform: translateY(-5px);
}

/* Responsive adjustments for individual tool pages */
@media (max-width: 768px) {
    .tool-container {
        padding: 15px;
    }
    
    .tool-interface-container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .related-tools .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-tools h3 {
        font-size: 20px;
    }
}

/* Enhanced tool interface styling */
.tool-interface {
    max-width: 800px;
    margin: 0 auto;
}

.tool-interface h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 28px;
    font-weight: 300;
}

.tool-interface h2 i {
    margin-right: 10px;
    color: #667eea;
}

/* Better spacing for tool sections */
.tool-section {
    margin-bottom: 25px;
}

.tool-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 400;
}

/* Improved result areas */
.result-area {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-area.success {
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(76, 175, 80, 0.1);
}

.result-area.error {
    border-color: rgba(244, 67, 54, 0.5);
    background: rgba(244, 67, 54, 0.1);
}

/* Color preview styling */
.color-preview {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin: 10px 0;
    background: #667eea;
}

.color-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* File upload improvements */
.file-upload {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.file-upload:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.file-upload.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.file-upload i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.file-upload p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 16px;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Input validation styles */
.input-error {
    border-color: #f44336 !important;
    background: rgba(244, 67, 54, 0.1) !important;
}

.input-valid {
    border-color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.1) !important;
}

.input-error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* QR Code preview styling */
.qr-preview {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    display: inline-block;
    margin: 0 auto;
}

#qrCanvas {
    max-width: 100%;
    height: auto;
}
/* Enhanced Image Converter Styles */
.queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.queue-item i {
    color: #667eea;
    margin-right: 10px;
}

.queue-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    font-weight: 500;
    min-width: 70px;
    text-align: center;
}

.queue-status.processing {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    animation: pulse 1.5s infinite;
}

.queue-status.complete {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.queue-status.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

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

.heic-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.result-preview {
    flex-shrink: 0;
}

.result-canvas {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: white;
}

.result-info {
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.9);
}

.result-info strong {
    color: white;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.result-info small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Dark mode adjustments for new elements */
body.dark-mode .queue-item,
.dark-mode .queue-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .result-item,
.dark-mode .result-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .result-info,
.dark-mode .result-info {
    color: #e2e8f0;
}

body.dark-mode .result-info strong,
.dark-mode .result-info strong {
    color: #f7fafc;
}

body.dark-mode .result-info small,
.dark-mode .result-info small {
    color: #a0aec0;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .result-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .result-preview {
        align-self: center;
    }
    
    .queue-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .queue-status {
        min-width: auto;
    }
}

/* Loading animation for processing */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}

.processing-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced file upload for multiple files */
.file-upload.multiple-files {
    min-height: 140px;
}

.file-upload.multiple-files p {
    line-height: 1.4;
}

.file-upload.multiple-files small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.8;
}

/* Success indicators */
.conversion-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
}

.conversion-success i {
    margin-right: 8px;
    font-size: 18px;
}
/* Enhanced PDF Tools Styles */
.pdf-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.pdf-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    min-height: 120px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pdf-tool-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.pdf-tool-btn i {
    font-size: 2em;
    margin-bottom: 10px;
    color: white;
}

.pdf-tool-btn span {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
    display: block;
}

.pdf-tool-btn small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    display: block;
}

.pdf-tool-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pdf-tool-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* PDF Queue Styles */
.pdf-queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pdf-queue-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pdf-queue-item i {
    color: #dc3545;
    margin-right: 12px;
    font-size: 18px;
}

.pdf-name {
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-right: 15px;
    word-break: break-word;
}

.pdf-size {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-right: 10px;
    min-width: 50px;
    text-align: right;
}

.btn-remove {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.btn-remove:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

/* PDF Result Styles */
.pdf-result-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.pdf-result-success h4 {
    color: #28a745;
    margin-bottom: 20px;
    font-size: 20px;
}

.pdf-result-success h4 i {
    margin-right: 10px;
}

.pdf-result-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.pdf-result-info p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.pdf-result-info strong {
    color: white;
}

.pdf-info-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.pdf-info-item.error {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.pdf-info-item h5 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

.pdf-info-item h5 i {
    margin-right: 8px;
    color: #667eea;
}

.pdf-info-item.error h5 i {
    color: #dc3545;
}

.pdf-info-section {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.pdf-info-section h6 {
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdf-info-section h6 i {
    margin-right: 6px;
}

.pdf-info-section p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.pdf-info-section p strong {
    color: rgba(255, 255, 255, 0.95);
    min-width: 120px;
    display: inline-block;
}

.pdf-info-item p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

.error-text {
    color: #dc3545 !important;
}

/* Digital signature styling */
.signature-status {
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: 500;
}

.signature-status.signed {
    background: rgba(40, 167, 69, 0.15);
    border-left: 3px solid #28a745;
    color: #28a745;
}

.signature-status.unsigned {
    background: rgba(108, 117, 125, 0.15);
    border-left: 3px solid #6c757d;
    color: #adb5bd;
}

.signature-status i {
    margin-right: 6px;
}

.signature-list {
    list-style: none;
    padding-left: 20px;
    margin: 8px 0;
}

.signature-list li {
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.8);
}

.signature-list li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

.signature-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
    border-left: 2px solid #ffc107;
}

.signature-note i {
    margin-right: 4px;
    color: #ffc107;
}

.signature-debug {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
    font-family: monospace;
}

/* Compression settings styling */
.compression-settings {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.compression-settings h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.compression-settings h4 i {
    margin-right: 8px;
    color: #667eea;
}

.compression-option {
    margin: 10px 0;
}

.compression-option label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.compression-option label:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
    padding-left: 15px;
}

.compression-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.compression-label {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.compression-label strong {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    margin-bottom: 4px;
}

.compression-label small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.4;
}

.compression-option input[type="radio"]:checked + .compression-label strong {
    color: #667eea;
}

.compression-option label:has(input[type="radio"]:checked) {
    background: rgba(102, 126, 234, 0.15);
    border-left: 3px solid #667eea;
    padding-left: 15px;
}

/* Dark mode adjustments for PDF tools */
body.dark-mode .pdf-queue-item,
.dark-mode .pdf-queue-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .pdf-result-info,
.dark-mode .pdf-result-info {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .pdf-info-item,
.dark-mode .pdf-info-item {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for PDF tools */
@media (max-width: 768px) {
    .pdf-tools-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .pdf-tool-btn {
        min-height: 100px;
        padding: 15px 10px;
    }
    
    .pdf-tool-btn i {
        font-size: 1.5em;
    }
    
    .pdf-tool-btn span {
        font-size: 14px;
    }
    
    .pdf-queue-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .pdf-name {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .pdf-size {
        margin-right: 0;
        text-align: center;
    }
}

/* Loading states for PDF operations */
.pdf-tool-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Success animations */
.pdf-result-success {
    animation: slideInUp 0.5s ease;
}

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

/* Compression statistics styling */
.compression-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.compression-stat {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.compression-stat .stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 5px;
}

.compression-stat .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Enhanced QR Code Generator Styles */
.qr-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.qr-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    justify-content: center;
}

.qr-type-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: white;
    transform: translateY(-2px);
}

.qr-type-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.qr-type-btn i {
    font-size: 1.5em;
    margin-bottom: 8px;
}

.qr-type-btn span {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-content-section {
    animation: fadeIn 0.3s ease;
}

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

/* WiFi QR Styles */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

.input-group {
    position: relative;
}

.input-group input[type="password"],
.input-group input[type="text"] {
    padding-right: 40px;
}

/* vCard Grid Layout */
.vcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.vcard-grid .input-group {
    margin-bottom: 0;
}

/* QR Result Enhancements */
.qr-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.qr-info strong {
    color: white;
}

/* WiFi Security Badge */
.wifi-security-badge {
    display: inline-block;
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.wifi-security-badge.wep {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.wifi-security-badge.open {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Contact Card Preview */
.vcard-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vcard-preview h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 16px;
}

.vcard-preview p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* QR Code Canvas Styling */
#qrCanvas {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px !important;
    border: 3px solid rgba(255, 255, 255, 0.1) !important;
}

/* Success States */
.qr-generation-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.qr-generation-success i {
    color: #28a745;
    font-size: 1.2em;
    margin-right: 8px;
}

/* Dark mode adjustments for QR generator */
body.dark-mode .qr-type-btn,
.dark-mode .qr-type-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .qr-info,
.dark-mode .qr-info,
body.dark-mode .vcard-preview,
.dark-mode .vcard-preview {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments for QR generator */
@media (max-width: 768px) {
    .qr-type-selector {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .qr-type-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 15px;
        min-height: auto;
    }
    
    .qr-type-btn i {
        margin-right: 10px;
        margin-bottom: 0;
        font-size: 1.2em;
    }
    
    .qr-type-btn span {
        font-size: 14px;
    }
    
    .vcard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .toggle-password {
        right: 15px;
    }
}

/* Loading states for QR generation */
.qr-generating {
    position: relative;
    overflow: hidden;
}

.qr-generating::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* QR Type Icons Enhancement */
.qr-type-btn .fa-font {
    color: #667eea;
}

.qr-type-btn .fa-wifi {
    color: #28a745;
}

.qr-type-btn .fa-address-card {
    color: #ffc107;
}

.qr-type-btn.active .fa-font,
.qr-type-btn.active .fa-wifi,
.qr-type-btn.active .fa-address-card {
    color: white;
}

/* Checkbox styling for WiFi hidden network */
input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #667eea;
}

/* Form validation states */
.input-group.error input,
.input-group.error textarea,
.input-group.error select {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.input-group.success input,
.input-group.success textarea,
.input-group.success select {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

/* QR Code type indicators */
.qr-type-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-type-indicator.wifi {
    background: rgba(40, 167, 69, 0.8);
}

.qr-type-indicator.vcard {
    background: rgba(255, 193, 7, 0.8);
    color: #000;
}
/* Enhanced Text Converter Styles */
.text-operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.text-op-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    min-height: 80px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid transparent;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.text-op-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.text-op-btn i {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: white;
}

.text-op-btn span {
    font-size: 13px;
    font-weight: 500;
    color: white;
    line-height: 1.2;
}

/* Text Statistics Styles */
.text-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 15px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.stat-item {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.stat-item strong {
    color: white;
    font-weight: 600;
    margin-left: 4px;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.result-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
}

.result-actions .btn i {
    font-size: 14px;
}

/* Enhanced textarea styling */
#textInput,
#convertedText {
    min-height: 150px;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    font-size: 14px;
}

#convertedText {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Success states for text operations */
.text-conversion-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    animation: textSuccessPulse 0.6s ease;
}

@keyframes textSuccessPulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* Line break removal indicator */
.line-break-indicator {
    position: relative;
}

.line-break-indicator::after {
    content: 'PDF Text Fix';
    position: absolute;
    top: -8px;
    right: 8px;
    background: rgba(255, 193, 7, 0.8);
    color: #000;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Character count color coding */
.stat-item.warning strong {
    color: #ffc107;
}

.stat-item.danger strong {
    color: #dc3545;
}

/* Dark mode adjustments for text converter */
body.dark-mode .text-stats,
.dark-mode .text-stats {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode #convertedText,
.dark-mode #convertedText {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments for text converter */
@media (max-width: 768px) {
    .text-operations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .text-op-btn {
        min-height: 70px;
        padding: 12px 8px;
    }
    
    .text-op-btn i {
        font-size: 1em;
        margin-bottom: 6px;
    }
    
    .text-op-btn span {
        font-size: 11px;
    }
    
    .text-stats {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .stat-item {
        font-size: 11px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .result-actions .btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .text-operations-grid {
        grid-template-columns: 1fr;
    }
    
    .text-op-btn {
        flex-direction: row;
        justify-content: flex-start;
        min-height: 50px;
        padding: 12px 15px;
    }
    
    .text-op-btn i {
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .text-op-btn span {
        font-size: 14px;
    }
}

/* Loading states for text operations */
.text-op-btn.processing {
    pointer-events: none;
    opacity: 0.7;
}

.text-op-btn.processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: textProcessing 1.5s infinite;
}

@keyframes textProcessing {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Copy success animation */
.copy-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Text operation specific icons and colors */
.text-op-btn[onclick*="uppercase"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.text-op-btn[onclick*="lowercase"] {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.text-op-btn[onclick*="title"] {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.text-op-btn[onclick*="sentence"] {
    background: linear-gradient(135deg, #e056fd, #f441a5);
}

.text-op-btn[onclick*="reverse"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.text-op-btn[onclick*="removeLineBreaks"] {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    position: relative;
}

.text-op-btn[onclick*="removeLineBreaks"]::before {
    content: 'PDF Fix';
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Hover effects for different operations */
.text-op-btn[onclick*="uppercase"]:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.text-op-btn[onclick*="lowercase"]:hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.text-op-btn[onclick*="title"]:hover {
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

.text-op-btn[onclick*="sentence"]:hover {
    box-shadow: 0 8px 25px rgba(224, 86, 253, 0.4);
}

.text-op-btn[onclick*="reverse"]:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.text-op-btn[onclick*="removeLineBreaks"]:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}
/* Monetized Layout Styles */
.monetized-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.tool-main-column {
    min-width: 0; /* Prevents grid overflow */
}

.sidebar-column {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ad Container Styles */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    min-height: 140px;
}

.leaderboard-ad {
    width: 100%;
    min-height: 140px;
    max-width: 780px;
    margin: 30px auto;
    padding: 25px;
}

.skyscraper-ad {
    width: 340px;
    min-height: 660px;
    margin: 0 auto;
    padding: 20px;
}

.sticky-ad {
    position: sticky;
    top: 20px;
}

/* Hosting Affiliate Card */
.hosting-affiliate-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: white;
}

.hosting-affiliate-card h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hosting-affiliate-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.hosting-features {
    margin: 15px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    color: #28a745;
    font-size: 12px;
}

.hosting-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.hosting-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    color: white;
}

/* Sidebar Tools List */
.sidebar-tools-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-tools-list h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

.sidebar-tool-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-tool-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-tool-link:hover {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

.sidebar-tool-link i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

/* Cross-Sell Section */
.cross-sell-section {
    margin: 30px 0;
}

.cross-sell-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.cross-sell-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.cross-sell-content {
    flex-grow: 1;
}

.cross-sell-content h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 16px;
}

.cross-sell-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.cross-sell-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.cross-sell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    text-decoration: none;
    color: #000;
}

/* SEO Content Section */
.seo-content-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-guide {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-guide h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 24px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.tool-guide h4 {
    color: #667eea;
    margin: 25px 0 12px 0;
    font-size: 18px;
}

.tool-guide p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Responsive Design for Monetized Layout */
@media (max-width: 1200px) {
    .main-content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }
    
    .skyscraper-ad {
        width: 280px;
        min-height: 580px;
    }
}

@media (max-width: 968px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-column {
        position: static;
        order: -1;
    }
    
    .skyscraper-ad {
        width: 100%;
        min-height: 120px;
        max-width: 728px;
    }
    
    .cross-sell-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .cross-sell-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .monetized-layout {
        padding: 15px;
    }
    
    .hosting-affiliate-card,
    .sidebar-tools-list,
    .tool-guide {
        padding: 20px 15px;
    }
    
    .leaderboard-ad {
        min-height: 100px;
    }
    
    .ad-container {
        padding: 10px;
        margin: 15px 0;
    }
    
    .tool-guide h3 {
        font-size: 20px;
    }
    
    .tool-guide h4 {
        font-size: 16px;
    }
    
    .tool-guide p {
        font-size: 14px;
    }
}

/* Dark Mode Adjustments for Monetized Layout */
body.dark-mode .hosting-affiliate-card,
.dark-mode .hosting-affiliate-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .sidebar-tools-list,
.dark-mode .sidebar-tools-list,
body.dark-mode .tool-guide,
.dark-mode .tool-guide {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .cross-sell-card,
.dark-mode .cross-sell-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
    border-color: rgba(255, 193, 7, 0.4);
}

/* Ad Placeholder Styling */
.ad-container::before {
    content: 'Advertisement';
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-container.has-ad::before {
    display: none;
}

/* Monetization Analytics */
.monetization-track {
    cursor: pointer;
    transition: all 0.3s ease;
}

.monetization-track:hover {
    opacity: 0.8;
}

/* Loading states for dynamic content */
.loading-content {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Tool loading states */
.tool-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.tool-loading i {
    font-size: 24px;
    margin-bottom: 15px;
    color: #667eea;
}

.tool-loading p {
    margin: 10px 0;
}

.tool-loading small {
    opacity: 0.6;
}

/* Error states */
.tool-interface .btn {
    margin-top: 15px;
}

/* Fallback tool interfaces */
.tool-interface h2 {
    margin-bottom: 20px;
}

.tool-interface .tool-section {
    margin-bottom: 25px;
}

/* Debug info (remove in production) */
.debug-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    margin: 10px 0;
    display: none; /* Hidden by default */
}

/* NetStack Tool Integration Styles */
.tool-screenshot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.netstack-card {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
}

.netstack-background {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.netstack-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.netstack-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
	z-index: 2;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-color: rgba(255, 255, 255, 0.4);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.netstack-card .tool-icon {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.netstack-card .tool-icon i {
    color: #667eea;
    text-shadow: none;
}

.netstack-card h3 {
    color: white !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7);
    font-weight: 700;
    margin-bottom: 15px;
}

.netstack-card p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    margin-bottom: 15px;
}

.netstack-card:hover .netstack-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
}

.netstack-card:hover .tool-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.netstack-card::before {
    display: none;
}

.netstack-card::after {
    display: none;
}

.featured-tool {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.3);
    overflow: visible;
}

.featured-tool::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #4A6BB5, #667eea);
    background-size: 400% 400%;
    border-radius: 17px;
    z-index: -1;
    animation: featuredGlow 3s ease-in-out infinite;
}

@keyframes featuredGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.featured-tool:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
}

.featured-tool:hover .tool-screenshot {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.tool-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.badge-new {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-interactive {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.badge-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badgeShimmer 2s infinite;
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Networking & Security Category - Standard styling */
.featured-category .category-title {
    /* Removed gradient and featured badge */
}

/* Removed featured badge animation and styling */

/* External link indicator for NetStack */
.featured-tool[target="_blank"]::after {
    content: '🔗';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.featured-tool[target="_blank"]:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

/* Dark mode adjustments for NetStack integration */
body.dark-mode .featured-tool,
.dark-mode .featured-tool {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: rgba(102, 126, 234, 0.4);
}

body.dark-mode .tool-screenshot,
.dark-mode .tool-screenshot {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments for NetStack tool */
@media (max-width: 768px) {
    .featured-tool[target="_blank"]::after {
        top: 10px;
        right: 10px;
        font-size: 14px;
    }
    
    .tool-badges {
        gap: 6px;
    }
    
    .badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .netstack-card .netstack-background {
        min-height: 200px;
    }
    
    .netstack-card .netstack-overlay {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tool-screenshot {
        width: 60px;
        height: 60px;
    }
    
    .tool-badges {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .netstack-card h3 {
        font-size: 1.2em;
    }
    
    .netstack-card p {
        font-size: 0.95em;
        line-height: 1.4;
    }
}

/* AdSense Integration Styles */
.adsense-container {
    margin: 20px 0;
    text-align: center;
    padding: 10px;
    background: transparent;
    border-radius: 8px;
    border: none;
    position: relative;
}

.adsense-container.leaderboard {
    max-width: 728px;
    min-height: 90px;
    margin: 20px auto;
}

.adsense-container.skyscraper {
    width: 300px;
    min-height: 600px;
    margin: 0 auto;
}

.adsense-container.banner {
    max-width: 728px;
    margin: 20px auto;
}

.adsense-container.sidebar {
    max-width: 300px;
    margin: 20px auto;
}

.adsense-container.in-content {
    margin: 30px 0;
    background: transparent;
    border: none;
}

.adsense-container.mobile_banner {
    max-width: 320px;
    min-height: 50px;
    margin: 15px auto;
}

/* AdSense ads background matching */
.adsbygoogle {
    background: transparent !important;
}

/* Enhanced Ad Placeholder for Development */
.ad-placeholder {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

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

.ad-placeholder i {
    font-size: 24px;
    opacity: 0.5;
}

.ad-placeholder p {
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder small {
    opacity: 0.7;
    font-size: 11px;
}

.ad-placeholder.leaderboard {
    min-height: 90px;
    max-width: 728px;
}

.ad-placeholder.skyscraper {
    min-height: 600px;
    width: 300px;
}

.ad-placeholder.mobile_banner {
    min-height: 50px;
    max-width: 320px;
}

/* Affiliate Link Styling */
.affiliate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.affiliate-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    color: white;
}

/* Dark mode styles for AdSense */
body.dark-mode .adsense-container,
.dark-mode .adsense-container {
    background: transparent;
    border: none;
}

body.dark-mode .ad-placeholder,
.dark-mode .ad-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive adjustments for AdSense */
@media (max-width: 768px) {
    .adsense-container {
        margin: 15px 0;
        padding: 8px;
    }
    
    .adsense-container.leaderboard,
    .adsense-container.skyscraper {
        width: 100%;
        max-width: 100%;
        min-height: 100px;
    }
    
    .ad-placeholder.leaderboard,
    .ad-placeholder.skyscraper {
        width: 100%;
        max-width: 100%;
        min-height: 100px;
    }
}

/* Ad loading animation */
.adsense-container.loading {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: ad-loading 2s infinite;
}

@keyframes ad-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Sticky ad positioning */
.sticky-ad {
    position: sticky;
    top: 20px;
    z-index: 100;
}

/* Ad visibility tracking */
.ad-visible {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ad-hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Remove underlines from tool cards */
.tool-card,
.tool-card:hover,
.tool-card:focus,
.tool-card:active,
.tool-card:visited {
    text-decoration: none !important;
}

.tool-card *,
.tool-card:hover *,
.tool-card:focus *,
.tool-card:active * {
    text-decoration: none !important;
}

/* VAT Calculator Styles */
.vat-mode-selector,
.vat-region-selector,
.vat-rate-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vat-mode-btn,
.vat-region-btn,
.vat-rate-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #212529;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.vat-mode-btn i {
    font-size: 24px;
}

.vat-rate-btn {
    font-size: 14px;
    padding: 10px 15px;
    min-width: 180px;
}

.vat-mode-btn.active,
.vat-region-btn.active,
.vat-rate-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-color: #667eea !important;
    font-weight: 600;
}

.vat-mode-btn:hover,
.vat-region-btn:hover,
.vat-rate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #e9ecef;
    color: #000;
}

.vat-mode-btn.active:hover,
.vat-region-btn.active:hover,
.vat-rate-btn.active:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

@media (max-width: 768px) {
    .vat-mode-btn,
    .vat-region-btn,
    .vat-rate-btn {
        min-width: 100%;
        white-space: normal;
    }
}


/* Encoding Tools Tabs */
.encoding-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.encoding-tab {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.encoding-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.encoding-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.encoding-tab i {
    font-size: 16px;
}

.encoding-tab-content {
    display: none;
}

.encoding-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.encoding-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.encoding-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Copy toast notification */
.copy-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

/* Dark mode support for encoding tools */
body.dark-mode .encoding-tabs {
    border-bottom-color: #444;
}

body.dark-mode .encoding-tab {
    color: #aaa;
}

body.dark-mode .encoding-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

body.dark-mode .encoding-tab.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .encoding-tabs {
        flex-direction: column;
    }
    
    .encoding-tab {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }
    
    .encoding-tab.active {
        border-bottom-color: #e0e0e0;
        border-left-color: #667eea;
    }
    
    .encoding-actions {
        flex-direction: column;
    }
    
    .encoding-actions .btn {
        width: 100%;
    }
}


/* Hash Generator Styles */
.hash-algorithms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hash-algorithm-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hash-algorithm-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.hash-algorithm-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.algo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.algo-header i {
    color: #667eea;
    font-size: 20px;
}

.algo-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.algo-output {
    position: relative;
    margin-bottom: 10px;
}

.algo-output input {
    width: 100%;
    padding: 12px 45px 12px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #f8f9fa;
    color: #333;
}

.algo-output input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
}

.copy-hash-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-hash-btn:hover {
    background: #5568d3;
    transform: translateY(-50%) scale(1.05);
}

.copy-hash-btn i {
    font-size: 14px;
}

.algo-info {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.hash-stats {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.hash-compare-container {
    position: relative;
}

.hash-compare-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.hash-match-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hash-match-success i {
    color: #28a745;
    font-size: 20px;
}

.hash-match-fail {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hash-match-fail i {
    color: #dc3545;
    font-size: 20px;
}

.hash-match-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hash-match-info i {
    color: #17a2b8;
    font-size: 20px;
}

.hash-guide {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hash-guide-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    font-size: 14px;
    line-height: 1.6;
}

.hash-guide-item strong {
    color: #667eea;
}

.hash-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

/* Dark mode support for hash generator */
body.dark-mode .hash-algorithm-card {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .hash-algorithm-card.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: #667eea;
}

body.dark-mode .algo-name {
    color: #fff;
}

body.dark-mode .algo-output input {
    background: #1a1a1a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .algo-output input:focus {
    background: #2a2a2a;
    border-color: #667eea;
}

body.dark-mode .algo-info {
    color: #aaa;
}

body.dark-mode .hash-guide-item {
    background: #2a2a2a;
    color: #ddd;
}

body.dark-mode .hash-match-success {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.4);
    color: #90ee90;
}

body.dark-mode .hash-match-fail {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    color: #ffb3b3;
}

body.dark-mode .hash-match-info {
    background: rgba(23, 162, 184, 0.2);
    border-color: rgba(23, 162, 184, 0.4);
    color: #87ceeb;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hash-algorithms-grid {
        grid-template-columns: 1fr;
    }
    
    .algo-output input {
        font-size: 11px;
        padding-right: 40px;
    }
    
    .hash-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}


/* Unix Timestamp Converter Styles */
.current-timestamp-display {
    margin: 20px 0;
}

.timestamp-value {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timestamp-date {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 500;
}

.btn-light {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.timestamp-result {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.result-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.result-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.timestamp-large {
    font-size: 32px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #667eea;
}

.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.batch-result {
    margin-top: 20px;
}

.batch-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.stat-success {
    color: #28a745;
    font-weight: 600;
}

.stat-error {
    color: #dc3545;
    font-weight: 600;
}

.batch-results-container {
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.batch-results-list {
    padding: 10px;
}

.batch-result-row {
    display: grid;
    grid-template-columns: 150px 30px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.batch-result-row:hover {
    background: #f8f9fa;
}

.batch-result-row.error {
    background: #fff5f5;
}

.batch-result-row.error .batch-date {
    color: #dc3545;
    font-weight: 600;
}

.batch-timestamp {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

.batch-arrow {
    color: #999;
    text-align: center;
    font-size: 16px;
}

.batch-date {
    color: #333;
    font-size: 14px;
}

.timestamp-guide {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    font-size: 14px;
    line-height: 1.6;
}

.guide-item strong {
    color: #667eea;
}

.error-message {
    padding: 15px;
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 6px;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message i {
    font-size: 20px;
}

.timestamp-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

/* Dark mode support for timestamp converter */
body.dark-mode .timestamp-result {
    background: #2a2a2a;
    border-left-color: #667eea;
}

body.dark-mode .result-item {
    background: #1a1a1a;
    border-color: #444;
}

body.dark-mode .result-value {
    color: #fff;
}

body.dark-mode .timestamp-large {
    color: #667eea;
}

body.dark-mode .batch-stats {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .batch-results-container {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .batch-result-row {
    border-bottom-color: #333;
}

body.dark-mode .batch-result-row:hover {
    background: #333;
}

body.dark-mode .batch-result-row.error {
    background: rgba(220, 53, 69, 0.1);
}

body.dark-mode .batch-date {
    color: #ddd;
}

body.dark-mode .guide-item {
    background: #2a2a2a;
    color: #ddd;
}

body.dark-mode .error-message {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    color: #ffb3b3;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .timestamp-value {
        font-size: 32px;
    }
    
    .timestamp-date {
        font-size: 14px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .date-picker-grid {
        grid-template-columns: 1fr;
    }
    
    .batch-result-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .batch-arrow {
        display: none;
    }
    
    .timestamp-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}

/* ============================================================================
   MY IP & INFO (Network Utilities)
   ============================================================================ */

.ip-info-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.ip-card {
    background: transparent;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ip-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.ip-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #667eea;
}

.ip-card-header i {
    font-size: 24px;
}

.ip-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.ip-address-card {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ip-address-card .ip-card-header h3 {
    color: #fff;
}

.ip-value {
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.ip-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ip-detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ip-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-content label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ip-map-container {
    margin: 30px 0;
}

.ip-map-container h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #333;
}

.ip-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-disclaimer {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.user-agent-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #2c3e50;
    background: transparent;
    padding: 15px;
    border-radius: 8px;
    word-break: break-all;
    line-height: 1.6;
}

.ip-additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: transparent;
    border-radius: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-size: 12px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-item span {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.ip-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
}

/* Dark mode support for IP Info */
body.dark-mode .ip-card {
    background: transparent;
    box-shadow: none;
}

body.dark-mode .ip-card-header h3 {
    color: #fff;
}

body.dark-mode .ip-detail-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .detail-content label {
    color: #999;
}

body.dark-mode .detail-value {
    color: #fff;
}

body.dark-mode .user-agent-value {
    background: transparent;
    color: #e9ecef;
}

body.dark-mode .ip-additional-info {
    background: transparent;
}

body.dark-mode .info-item label {
    color: #adb5bd;
}

body.dark-mode .info-item span {
    color: #f8f9fa;
}

body.dark-mode .map-disclaimer {
    color: #999;
}

body.dark-mode .ip-map-container h3 {
    color: #fff;
}

/* ============================================================================
   SUBNET CALCULATOR (Network Utilities)
   ============================================================================ */

.subnet-input-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.subnet-result {
    margin-top: 30px;
}

.subnet-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.subnet-info-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.subnet-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.subnet-info-card label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.subnet-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'Courier New', monospace;
}

.subnet-visual {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.subnet-visual h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #333;
}

.network-size-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.network-size-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
    min-width: 2px;
}

.network-size-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.subnet-binary {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.subnet-binary h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #333;
}

.binary-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.binary-row label {
    min-width: 120px;
    font-weight: 600;
    color: #555;
}

.binary-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    flex: 1;
    word-break: break-all;
}

.binary-octet {
    display: inline-block;
    padding: 4px 8px;
    background: #667eea;
    color: #fff;
    border-radius: 4px;
    margin: 2px;
    font-weight: 500;
}

/* Dark mode support for Subnet Calculator */
body.dark-mode .subnet-info-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .subnet-info-card label {
    color: #999;
}

body.dark-mode .subnet-value {
    color: #fff;
}

body.dark-mode .subnet-visual {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .subnet-visual h4 {
    color: #fff;
}

body.dark-mode .network-size-bar {
    background: #1a1a1a;
}

body.dark-mode .network-size-info {
    color: #999;
}

body.dark-mode .subnet-binary {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .subnet-binary h4 {
    color: #fff;
}

body.dark-mode .binary-row {
    background: #1a1a1a;
}

body.dark-mode .binary-row label {
    color: #ddd;
}

body.dark-mode .binary-value {
    color: #fff;
}

/* Mobile responsive for Network Utilities */
@media (max-width: 768px) {
    .ip-details-grid {
        grid-template-columns: 1fr;
    }
    
    .ip-value {
        font-size: 28px;
    }
    
    .subnet-input-grid {
        grid-template-columns: 1fr;
    }
    
    .subnet-info-grid {
        grid-template-columns: 1fr;
    }
    
    .binary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .binary-row label {
        min-width: auto;
    }
    
    .ip-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}

/* ============================================================================
   TEXT DIFF CHECKER (Daily Utility & Social Tools)
   ============================================================================ */

.diff-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.diff-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.diff-option input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.diff-option:hover {
    color: #667eea;
}

.diff-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.diff-panel {
    display: flex;
    flex-direction: column;
}

.diff-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.diff-panel-header i {
    font-size: 18px;
}

.diff-line-count {
    margin-left: auto;
    font-size: 13px;
    opacity: 0.9;
}

.diff-textarea {
    width: 100%;
    min-height: 400px;
    padding: 15px;
    border: 2px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s;
}

.diff-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.diff-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 24px;
    padding-top: 60px;
}

.diff-result {
    margin-top: 30px;
}

.diff-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}

.stat-badge i {
    font-size: 18px;
}

.stat-added {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.stat-removed {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.stat-unchanged {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.diff-view-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.diff-view-panel {
    display: flex;
    flex-direction: column;
}

.diff-view-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.diff-view {
    height: 500px;
    overflow: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
}

.diff-line {
    display: flex;
    padding: 4px 0;
    min-height: 24px;
    border-left: 3px solid transparent;
}

.diff-line-unchanged {
    background: #fff;
}

.diff-line-added {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.diff-line-removed {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.diff-line-empty {
    background: #f8f9fa;
    opacity: 0.5;
}

.line-number {
    display: inline-block;
    min-width: 50px;
    padding: 0 12px;
    color: #999;
    text-align: right;
    user-select: none;
    flex-shrink: 0;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.line-content {
    padding: 0 12px;
    white-space: pre-wrap;
    word-break: break-word;
    flex: 1;
}

/* Dark mode support for Diff Checker */
body.dark-mode .diff-option {
    color: #ddd;
}

body.dark-mode .diff-option:hover {
    color: #667eea;
}

body.dark-mode .diff-textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .diff-textarea:focus {
    border-color: #667eea;
}

body.dark-mode .diff-divider {
    color: #667eea;
}

body.dark-mode .stat-added {
    background: rgba(40, 167, 69, 0.2);
    color: #5cb85c;
}

body.dark-mode .stat-removed {
    background: rgba(220, 53, 69, 0.2);
    color: #f56565;
}

body.dark-mode .stat-unchanged {
    background: rgba(108, 117, 125, 0.2);
    color: #adb5bd;
}

body.dark-mode .diff-view-container {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .diff-view-header {
    background: #1a1a1a;
    border-bottom-color: #444;
    color: #fff;
}

body.dark-mode .diff-view {
    background: #2a2a2a;
}

body.dark-mode .diff-line-unchanged {
    background: #2a2a2a;
}

body.dark-mode .diff-line-added {
    background: rgba(40, 167, 69, 0.15);
}

body.dark-mode .diff-line-removed {
    background: rgba(220, 53, 69, 0.15);
}

body.dark-mode .diff-line-empty {
    background: #1a1a1a;
}

body.dark-mode .line-number {
    background: #1a1a1a;
    border-right-color: #444;
    color: #666;
}

body.dark-mode .line-content {
    color: #ddd;
}

/* Mobile responsive for Diff Checker */
@media (max-width: 1024px) {
    .diff-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .diff-divider {
        display: none;
    }
    
    .diff-view-container {
        grid-template-columns: 1fr;
    }
    
    .diff-textarea {
        min-height: 300px;
    }
    
    .diff-view {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .diff-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .diff-controls .btn {
        width: 100%;
    }
    
    .diff-option {
        justify-content: center;
    }
    
    .diff-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-badge {
        justify-content: center;
    }
    
    .diff-textarea {
        min-height: 250px;
        font-size: 13px;
    }
    
    .diff-view {
        height: 350px;
        font-size: 13px;
    }
    
    .line-number {
        min-width: 40px;
        padding: 0 8px;
    }
    
    .line-content {
        padding: 0 8px;
    }
}

/* ============================================================================
   BUSINESS DAYS CALCULATOR (Business & Finance)
   ============================================================================ */

.date-calc-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.mode-btn i {
    font-size: 32px;
    color: #667eea;
}

.mode-btn span {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.mode-btn small {
    font-size: 13px;
    color: #666;
}

.mode-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.mode-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.mode-btn.active i,
.mode-btn.active span,
.mode-btn.active small {
    color: #fff;
}

.calc-mode {
    display: none;
}

.calc-mode.active {
    display: block;
}

.date-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.date-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
}

input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.date-calc-options {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.date-calc-options h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    transition: background 0.2s;
}

.option-checkbox:hover {
    background: #f0f0f0;
}

.option-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.checkbox-label i {
    color: #667eea;
    margin-right: 8px;
}

.checkbox-label strong {
    font-size: 15px;
    color: #333;
}

.checkbox-label small {
    font-size: 13px;
    color: #666;
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
}

.date-result {
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.result-header i {
    font-size: 28px;
    color: #28a745;
}

.result-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.result-main {
    text-align: center;
    margin-bottom: 30px;
}

.result-big-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.result-big-number .number {
    font-size: 64px;
    font-weight: bold;
    line-height: 1;
}

.result-big-number .label {
    font-size: 18px;
    opacity: 0.9;
}

.result-big-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.result-big-date .date {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
}

.result-big-date .label {
    font-size: 16px;
    opacity: 0.9;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

.holiday-list {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.holiday-list h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.holiday-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.holiday-item i {
    color: #667eea;
    font-size: 18px;
}

.holiday-date {
    font-weight: 600;
    color: #555;
    min-width: 200px;
}

.holiday-name {
    color: #333;
}

/* Dark mode support for Date Calculator */
body.dark-mode .mode-btn {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .mode-btn span,
body.dark-mode .mode-btn small {
    color: #ddd;
}

body.dark-mode .mode-btn:hover {
    border-color: #667eea;
}

body.dark-mode .date-input,
body.dark-mode input[type="number"] {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .date-calc-options {
    background: #1a1a1a;
}

body.dark-mode .date-calc-options h4 {
    color: #fff;
}

body.dark-mode .option-checkbox {
    background: #2a2a2a;
}

body.dark-mode .option-checkbox:hover {
    background: #333;
}

body.dark-mode .checkbox-label strong {
    color: #fff;
}

body.dark-mode .checkbox-label small {
    color: #999;
}

body.dark-mode .date-result {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

body.dark-mode .result-header {
    border-bottom-color: #444;
}

body.dark-mode .result-header h3 {
    color: #fff;
}

body.dark-mode .detail-row {
    background: #1a1a1a;
}

body.dark-mode .detail-label {
    color: #aaa;
}

body.dark-mode .detail-value {
    color: #fff;
}

body.dark-mode .holiday-list {
    border-top-color: #444;
}

body.dark-mode .holiday-list h4 {
    color: #fff;
}

body.dark-mode .holiday-item {
    background: #1a1a1a;
}

body.dark-mode .holiday-date {
    color: #aaa;
}

body.dark-mode .holiday-name {
    color: #ddd;
}

/* Mobile responsive for Date Calculator */
@media (max-width: 768px) {
    .date-calc-modes {
        grid-template-columns: 1fr;
    }
    
    .mode-btn {
        padding: 15px;
    }
    
    .mode-btn i {
        font-size: 28px;
    }
    
    .date-input-grid {
        grid-template-columns: 1fr;
    }
    
    .result-big-number .number {
        font-size: 48px;
    }
    
    .result-big-date .date {
        font-size: 22px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .holiday-date {
        min-width: auto;
        font-size: 14px;
    }
}

/* ============================================================================
   FANCY FONT GENERATOR (Generators / Social Media)
   ============================================================================ */

.font-input {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.font-input:focus {
    outline: none;
    border-color: #667eea;
}

.font-stats {
    text-align: right;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.font-stats span {
    font-weight: 600;
    color: #667eea;
}

.font-results {
    margin-top: 30px;
}

.font-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

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

.font-placeholder p {
    font-size: 16px;
    margin: 0;
}

.font-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.font-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.font-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.font-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.font-card-header i {
    color: #667eea;
    font-size: 18px;
}

.font-name {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.font-preview {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 24px;
    line-height: 1.4;
    word-break: break-word;
    margin-bottom: 15px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
}

.copy-font-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-font-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.copy-font-btn.copied {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Dark mode support for Font Generator */
body.dark-mode .font-input {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .font-stats {
    color: #999;
}

body.dark-mode .font-placeholder {
    color: #666;
}

body.dark-mode .font-placeholder i {
    color: #444;
}

body.dark-mode .font-card {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .font-card:hover {
    border-color: #667eea;
}

body.dark-mode .font-card-header {
    border-bottom-color: #444;
}

body.dark-mode .font-name {
    color: #aaa;
}

body.dark-mode .font-preview {
    background: #1a1a1a;
    color: #fff;
}

/* Mobile responsive for Font Generator */
@media (max-width: 768px) {
    .font-styles-grid {
        grid-template-columns: 1fr;
    }
    
    .font-input {
        font-size: 16px;
        min-height: 80px;
    }
    
    .font-preview {
        font-size: 20px;
        min-height: 60px;
        padding: 12px;
    }
    
    .font-card {
        padding: 15px;
    }
}

/* ============================================================================
   AI TOKEN COUNTER (Developer Tools / AI)
   ============================================================================ */

.token-input {
    width: 100%;
    min-height: 250px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s;
}

.token-input:focus {
    outline: none;
    border-color: #667eea;
}

.token-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.token-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.stat-card-primary .stat-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.stat-card-primary .stat-value,
.stat-card-primary .stat-label {
    color: #fff;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #667eea;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cost-estimator {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.cost-estimator h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.cost-estimator h3 i {
    color: #28a745;
}

.model-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.model-select:focus {
    outline: none;
    border-color: #667eea;
}

.cost-results {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-row-total {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #667eea;
    border-bottom: none;
}

.cost-label {
    font-weight: 600;
    color: #555;
}

.cost-value {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    font-family: 'Courier New', monospace;
}

.cost-row-total .cost-value {
    font-size: 24px;
    color: #667eea;
}

.cost-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 8px;
    margin-top: 20px;
}

.cost-info i {
    color: #667eea;
    font-size: 18px;
    margin-top: 2px;
}

.cost-info p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.token-info-section {
    margin-top: 40px;
}

.token-info-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.token-info-section h3 i {
    color: #ffc107;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
}

.info-card h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-card ul {
    margin: 0;
    padding-left: 20px;
}

.info-card li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 5px;
}

.token-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
}

/* Dark mode support for Token Counter */
body.dark-mode .token-input {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .stat-card {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .stat-icon {
    background: #1a1a1a;
}

body.dark-mode .stat-value {
    color: #fff;
}

body.dark-mode .stat-label {
    color: #999;
}

body.dark-mode .cost-estimator {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .cost-estimator h3 {
    color: #fff;
}

body.dark-mode .model-select {
    background: #1a1a1a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .cost-results {
    background: #1a1a1a;
}

body.dark-mode .cost-row {
    border-bottom-color: #444;
}

body.dark-mode .cost-row-total {
    border-top-color: #667eea;
}

body.dark-mode .cost-label {
    color: #aaa;
}

body.dark-mode .cost-info {
    background: rgba(102, 126, 234, 0.1);
}

body.dark-mode .cost-info p {
    color: #ddd;
}

body.dark-mode .token-info-section h3 {
    color: #fff;
}

body.dark-mode .info-card {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .info-card p,
body.dark-mode .info-card li {
    color: #ddd;
}

/* Mobile responsive for Token Counter */
@media (max-width: 768px) {
    .token-input {
        min-height: 200px;
        font-size: 14px;
    }
    
    .token-actions {
        flex-direction: column;
    }
    
    .token-actions .btn {
        width: 100%;
    }
    
    .token-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .cost-estimator {
        padding: 20px;
    }
    
    .cost-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .token-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}


/* ============================================================================
   PORTUGUESE HOUSING CREDIT SIMULATOR
   ============================================================================ */

.mortgage-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mortgage-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mortgage-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.euribor-display {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.euribor-display h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.euribor-rate {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.total-rate-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #667eea;
}

.total-rate-display h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.total-rate {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    margin: 0;
}

.advanced-toggle {
    background: #f8f9fa;
    border: 2px dashed #ccc;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.advanced-toggle:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.advanced-options {
    display: none;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mortgage-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
}

.summary-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.summary-sublabel {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

.mortgage-breakdown {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.mortgage-breakdown h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item span {
    color: #666;
}

.breakdown-item strong {
    color: #333;
}

.text-danger {
    color: #dc3545 !important;
}

.amortization-schedule {
    margin-bottom: 30px;
}

.amortization-schedule h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.amortization-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.amortization-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.amortization-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.amortization-table tbody tr:hover {
    background: #f8f9fa;
}

.amortization-table tbody tr:last-child td {
    border-bottom: none;
    font-weight: bold;
    background: #f8f9fa;
}

.mortgage-chart {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.mortgage-chart h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.chart-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
}

.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        #667eea 0% var(--percentage),
        #dc3545 var(--percentage) 100%
    );
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.chart-legend {
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.legend-color {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
}

.legend-label strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.legend-label span {
    display: block;
    color: #666;
    font-size: 13px;
}

.chart-insight {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

.chart-insight i {
    color: #ffc107;
    margin-right: 8px;
}

/* Dark mode support */
body.dark-mode .summary-card,
body.dark-mode .amortization-table,
body.dark-mode .mortgage-chart {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .summary-value,
body.dark-mode .breakdown-item strong,
body.dark-mode .amortization-table td,
body.dark-mode .legend-label strong {
    color: #e0e0e0;
}

body.dark-mode .summary-label,
body.dark-mode .breakdown-item span,
body.dark-mode .legend-label span {
    color: #999;
}

body.dark-mode .mortgage-breakdown,
body.dark-mode .advanced-options,
body.dark-mode .total-rate-display {
    background: #1a1a1a;
}

body.dark-mode .amortization-table tbody tr:hover {
    background: #333;
}

body.dark-mode .chart-insight {
    background: #3a3a2a;
    color: #ffd700;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mortgage-input-group {
        grid-template-columns: 1fr;
    }

    .mortgage-summary {
        grid-template-columns: 1fr;
    }

    .chart-container {
        flex-direction: column;
        gap: 30px;
    }

    .pie-chart {
        width: 180px;
        height: 180px;
    }

    .summary-value {
        font-size: 20px;
    }

    .amortization-table {
        font-size: 12px;
    }

    .amortization-table th,
    .amortization-table td {
        padding: 8px;
    }
}


/* ============================================================================
   EXIF DATA VIEWER & REMOVER
   ============================================================================ */

.exif-preview-container {
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.exif-preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.exif-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #856404;
}

.exif-warning i {
    color: #ffc107;
    margin-right: 8px;
    font-size: 18px;
}

.exif-warning strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.exif-warning p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

.exif-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    border-radius: 8px;
    color: #155724;
}

.exif-success i {
    color: #28a745;
    margin-right: 8px;
    font-size: 18px;
}

.exif-success strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.exif-success p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

.exif-map {
    height: 300px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.exif-coordinates {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.exif-coordinates a {
    color: #667eea;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
}

.exif-coordinates a:hover {
    text-decoration: underline;
}

.exif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.exif-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.exif-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.exif-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.exif-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.exif-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
    max-width: 400px;
}

.exif-toast.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.exif-toast.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.exif-toast i {
    margin-right: 8px;
}

/* Dark mode support */
body.dark-mode .exif-preview-container {
    background: #1a1a1a;
}

body.dark-mode .exif-item {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .exif-value {
    color: #e0e0e0;
}

body.dark-mode .exif-label {
    color: #999;
}

body.dark-mode .exif-coordinates {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .exif-warning {
    background: #3a3a2a;
    color: #ffd700;
}

body.dark-mode .exif-success {
    background: #1a3a1a;
    color: #90ee90;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .exif-grid {
        grid-template-columns: 1fr;
    }

    .exif-map {
        height: 250px;
    }

    .exif-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }

    .exif-preview-container img {
        max-height: 300px;
    }
}


/* ============================================================================
   CRON JOB GENERATOR
   ============================================================================ */

.cron-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.preset-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.preset-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.preset-btn i {
    color: #667eea;
    font-size: 20px;
    margin-bottom: 5px;
}

.preset-btn strong {
    color: #333;
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

.preset-btn small {
    color: #666;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
}

.cron-builder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cron-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cron-field label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cron-field label i {
    color: #667eea;
    margin-right: 5px;
}

.cron-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cron-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cron-custom {
    width: 100%;
    padding: 10px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
}

.cron-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cron-output {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cron-expression {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: bold;
    color: #4ec9b0;
    letter-spacing: 2px;
    flex: 1;
    min-width: 200px;
}

.cron-explanation {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.6;
}

.cron-explanation i {
    margin-right: 10px;
    opacity: 0.9;
}

.cron-explanation strong {
    font-weight: 700;
}

.cron-schedule {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.schedule-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.schedule-date {
    flex: 1;
    color: #333;
    font-weight: 600;
}

.schedule-time {
    color: #667eea;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 16px;
}

.cron-format {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.cron-format code {
    font-size: 24px;
    color: #667eea;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.format-labels {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #666;
}

.format-labels span:first-child {
    color: #667eea;
    font-weight: bold;
}

/* Dark mode support */
body.dark-mode .preset-btn,
body.dark-mode .cron-select,
body.dark-mode .schedule-item {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .preset-btn strong,
body.dark-mode .cron-field label,
body.dark-mode .schedule-date {
    color: #e0e0e0;
}

body.dark-mode .preset-btn small {
    background: #1a1a1a;
    color: #999;
}

body.dark-mode .cron-custom {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .cron-format {
    background: #2a2a2a;
}

body.dark-mode .format-labels {
    color: #999;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cron-presets {
        grid-template-columns: 1fr;
    }

    .cron-builder {
        grid-template-columns: 1fr;
    }

    .cron-expression {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .cron-output {
        flex-direction: column;
        align-items: stretch;
    }

    .cron-explanation {
        font-size: 16px;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .schedule-time {
        font-size: 14px;
    }

    .cron-format code {
        font-size: 16px;
    }

    .format-labels {
        font-size: 11px;
    }
}


/* ============================================================================
   SCREEN & DEAD PIXEL TESTER
   ============================================================================ */

.screen-tester-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.instruction-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.instruction-card i {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 10px;
}

.instruction-card h3 {
    margin: 10px 0 15px 0;
    color: #333;
    font-size: 18px;
}

.instruction-card ol,
.instruction-card ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    line-height: 1.8;
}

.instruction-card ol li {
    margin-bottom: 10px;
}

.instruction-card ul ul {
    margin-top: 5px;
    margin-bottom: 10px;
}

.instruction-card strong {
    color: #333;
}

.color-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.color-preview-item {
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.color-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-large {
    font-size: 18px;
    padding: 15px 40px;
    min-width: 250px;
}

.btn-large i {
    margin-right: 10px;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    color: #856404;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.warning-box i {
    font-size: 20px;
    margin-top: 2px;
}

.warning-box strong {
    color: #856404;
}

/* Fullscreen Test Styles */
.screen-test-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.screen-test-fullscreen.screen-test-fallback {
    position: fixed;
}

.screen-test-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.screen-test-color-name {
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.screen-test-instructions {
    font-size: 18px;
    color: white;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 0 20px;
    animation: fadeIn 0.5s ease 0.2s both;
}

.screen-test-exit {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.screen-test-exit:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.screen-test-exit i {
    margin-right: 8px;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .screen-tester-instructions {
        grid-template-columns: 1fr;
    }

    .color-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }

    .color-preview-item {
        height: 80px;
        font-size: 14px;
    }

    .btn-large {
        font-size: 16px;
        padding: 12px 30px;
        min-width: 200px;
    }

    .screen-test-color-name {
        font-size: 36px;
    }

    .screen-test-instructions {
        font-size: 16px;
    }

    .screen-test-exit {
        top: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Dark Mode */
body.dark-mode .instruction-card {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .instruction-card h3 {
    color: #fff;
}

body.dark-mode .instruction-card ol,
body.dark-mode .instruction-card ul {
    color: #ccc;
}

body.dark-mode .instruction-card strong {
    color: #fff;
}

body.dark-mode .warning-box {
    background: #3a3a2a;
    border-color: #ffc107;
    color: #ffd54f;
}

body.dark-mode .warning-box strong {
    color: #ffd54f;
}


/* ============================================================================
   FAVICON GENERATOR & CHECKER
   ============================================================================ */

.favicon-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.favicon-preview-item {
    text-align: center;
}

.browser-tab-simulation {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    padding: 10px;
    margin-bottom: 10px;
}

.browser-tab {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.browser-tab img {
    width: 16px;
    height: 16px;
}

.favicon-size-preview {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin-bottom: 10px;
}

.favicon-size-preview img {
    max-width: 100%;
    height: auto;
}

.preview-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin: 0;
}

.favicon-formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.favicon-format-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #333;
}

.favicon-format-item i {
    color: #28a745;
    font-size: 18px;
}

.code-snippet {
    position: relative;
    background: #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
}

.code-snippet pre {
    color: #f8f8f2;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 12px;
}

.info-box {
    background: #e7f3ff;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-box i {
    font-size: 24px;
    color: #2196f3;
    margin-top: 2px;
}

.info-box strong {
    color: #1976d2;
    display: block;
    margin-bottom: 5px;
}

.info-box p {
    margin: 5px 0;
    color: #555;
    line-height: 1.6;
}

.info-box ul {
    margin: 5px 0 0 20px;
    color: #555;
    line-height: 1.8;
}

.info-box ul li {
    margin: 3px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .favicon-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .favicon-formats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .favicon-format-item {
        padding: 12px;
        font-size: 13px;
    }

    .code-snippet {
        padding: 15px;
    }

    .code-snippet pre {
        font-size: 11px;
    }

    .copy-code-btn {
        position: static;
        margin-top: 10px;
        width: 100%;
    }

    .info-box {
        flex-direction: column;
        gap: 10px;
    }
}

/* Dark Mode */
body.dark-mode .browser-tab-simulation {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .browser-tab {
    background: #1a1a1a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .favicon-size-preview {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .favicon-format-item {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .code-snippet {
    background: #1a1a1a;
    border: 1px solid #444;
}

body.dark-mode .invoice-generator .info-box,
body.dark .invoice-generator .info-box {
    background: #0d1a26 !important;
    border-color: #2196f3 !important;
}

body.dark-mode .invoice-generator .info-box i,
body.dark .invoice-generator .info-box i {
    color: #64b5f6 !important;
}

body.dark-mode .invoice-generator .info-box p,
body.dark-mode .invoice-generator .info-box ul,
body.dark-mode .invoice-generator .info-box ol,
body.dark .invoice-generator .info-box p,
body.dark .invoice-generator .info-box ul,
body.dark .invoice-generator .info-box ol {
    color: #f5f5f5 !important;
}

body.dark-mode .invoice-generator .info-box strong,
body.dark .invoice-generator .info-box strong {
    color: #bbdefb !important;
}


/* ============================================================================
   FREE INVOICE GENERATOR
   ============================================================================ */

.invoice-generator {
    max-width: 1200px;
    margin: 0 auto;
}

.legal-disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.legal-disclaimer i {
    color: #856404;
    font-size: 24px;
    margin-top: 2px;
}

.legal-disclaimer strong {
    color: #856404;
    display: block;
    margin-bottom: 5px;
}

.legal-disclaimer p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.currency-buttons {
    display: flex;
    gap: 10px;
}

.currency-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.currency-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.currency-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.invoice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.invoice-items-container {
    overflow-x: auto;
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.invoice-items-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.invoice-items-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
}

.invoice-items-table input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.invoice-items-table .item-amount {
    text-align: right;
    font-weight: 600;
}

.btn-icon {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    transition: color 0.3s;
}

.btn-icon:hover {
    color: #c82333;
}

.invoice-totals {
    max-width: 400px;
    margin-left: auto;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.totals-row:last-child {
    border-bottom: none;
}

.vat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vat-row > div {
    display: flex;
    align-items: center;
}

.total-row {
    font-size: 18px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
}

.btn-large {
    font-size: 18px;
    padding: 15px 40px;
    min-width: 250px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .invoice-grid {
        grid-template-columns: 1fr;
    }

    .currency-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .currency-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .currency-btn {
        flex: 1;
        padding: 10px;
        font-size: 14px;
    }

    .invoice-items-table {
        font-size: 12px;
    }

    .invoice-items-table th,
    .invoice-items-table td {
        padding: 8px 5px;
    }

    .invoice-items-table input {
        padding: 5px;
        font-size: 12px;
    }

    .invoice-totals {
        max-width: 100%;
        font-size: 14px;
    }

    .total-row {
        font-size: 16px;
    }

    .btn-large {
        font-size: 16px;
        padding: 12px 30px;
        min-width: 200px;
        width: 100%;
    }

    .legal-disclaimer {
        flex-direction: column;
    }
}

/* Dark Mode */
body.dark-mode .invoice-generator .legal-disclaimer,
body.dark .invoice-generator .legal-disclaimer {
    background: #1a1410 !important;
    border-color: #ffc107 !important;
}

body.dark-mode .invoice-generator .legal-disclaimer i,
body.dark .invoice-generator .legal-disclaimer i {
    color: #ffeb3b !important;
}

body.dark-mode .invoice-generator .legal-disclaimer strong,
body.dark-mode .invoice-generator .legal-disclaimer p,
body.dark .invoice-generator .legal-disclaimer strong,
body.dark .invoice-generator .legal-disclaimer p {
    color: #fff9c4 !important;
}

body.dark-mode .currency-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.dark-mode .currency-btn:hover {
    border-color: #667eea;
    background: #3a3a4a;
}

body.dark-mode .currency-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

body.dark-mode .invoice-generator .invoice-items-table th,
body.dark .invoice-generator .invoice-items-table th {
    background: #1a1a1a !important;
    color: #fff !important;
    border-bottom-color: #444 !important;
}

body.dark-mode .invoice-generator .invoice-items-table td,
body.dark .invoice-generator .invoice-items-table td {
    border-bottom-color: #444 !important;
    color: #f5f5f5 !important;
}

body.dark-mode .invoice-generator .invoice-items-table input,
body.dark .invoice-generator .invoice-items-table input {
    background: #0d0d0d !important;
    border-color: #444 !important;
    color: #fff !important;
}

body.dark-mode .invoice-generator .invoice-totals,
body.dark .invoice-generator .invoice-totals {
    background: #1a1a1a !important;
}

body.dark-mode .invoice-generator .totals-row,
body.dark .invoice-generator .totals-row {
    border-bottom-color: #444 !important;
    color: #f5f5f5 !important;
}

body.dark-mode .invoice-generator .total-row,
body.dark .invoice-generator .total-row {
    border-top-color: #444 !important;
    color: #f5f5f5 !important;
}


/* ============================================================================
   CV / RESUME BUILDER
   ============================================================================ */

.cv-builder {
    max-width: 100%;
    padding: 0;
}

.privacy-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.privacy-badge i {
    font-size: 32px;
    margin-top: 5px;
}

.privacy-badge strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.privacy-badge p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.95;
}

.cv-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-height: 800px;
}

.cv-editor {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
    max-height: 1200px;
}

.cv-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.cv-editor-header h3 {
    margin: 0;
    color: #333;
}

.cv-actions-top {
    display: flex;
    gap: 10px;
}

.cv-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.cv-section-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.cv-section-content {
    margin-top: 15px;
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.cv-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.cv-item-header {
    background: #f0f0f0;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: move;
}

.cv-item-drag {
    color: #999;
    cursor: grab;
}

.cv-item-title {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.cv-item-content {
    padding: 15px;
}

.cv-preview {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 20px;
    max-height: 1200px;
    display: flex;
    flex-direction: column;
}

.cv-preview-header {
    background: #667eea;
    color: white;
    padding: 15px 20px;
}

.cv-preview-header h3 {
    margin: 0;
    font-size: 18px;
}

.cv-preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: #fafafa;
}

/* CV Document Styles */
.cv-document {
    background: white;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.cv-doc-header {
    border-bottom: 3px solid #667eea;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.cv-doc-header h1 {
    margin: 0 0 5px 0;
    font-size: 32px;
    color: #333;
}

.cv-doc-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
}

.cv-doc-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.cv-doc-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cv-doc-contact i {
    color: #667eea;
}

.cv-doc-section {
    margin-bottom: 25px;
}

.cv-doc-section h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.cv-doc-item {
    margin-bottom: 20px;
}

.cv-doc-item h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.cv-doc-item-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.cv-doc-company {
    color: #667eea;
    font-weight: 600;
}

.cv-doc-date {
    color: #999;
}

.cv-doc-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.cv-doc-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cv-doc-skill {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.cv-doc-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.cv-doc-list li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #555;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .cv-split-container {
        grid-template-columns: 1fr;
    }

    .cv-preview {
        position: static;
        max-height: 600px;
    }

    .cv-grid {
        grid-template-columns: 1fr;
    }

    .cv-editor {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .privacy-badge {
        flex-direction: column;
        text-align: center;
    }

    .cv-editor-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .cv-actions-top {
        width: 100%;
        flex-direction: column;
    }

    .cv-actions-top button {
        width: 100%;
    }

    .cv-document {
        padding: 20px;
    }

    .cv-doc-header h1 {
        font-size: 24px;
    }

    .cv-doc-contact {
        flex-direction: column;
        gap: 8px;
    }
}

/* Dark Mode */
body.dark-mode .privacy-badge {
    background: linear-gradient(135deg, #5568d3, #6a3f8f);
}

body.dark-mode .cv-editor {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .cv-editor-header {
    border-bottom-color: #444;
}

body.dark-mode .cv-editor-header h3 {
    color: #fff;
}

body.dark-mode .cv-section {
    background: #1a1a1a;
}

body.dark-mode .cv-section-header h4 {
    color: #fff;
}

body.dark-mode .cv-item {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .cv-item-header {
    background: #1a1a1a;
}

body.dark-mode .cv-item-title {
    color: #fff;
}

body.dark-mode .cv-preview {
    background: #2a2a2a;
    border-color: #444;
}

body.dark-mode .cv-preview-content {
    background: #1a1a1a;
}

body.dark-mode .cv-document {
    background: #2a2a2a;
    color: #fff;
}

body.dark-mode .cv-doc-header {
    border-bottom-color: #667eea;
}

body.dark-mode .cv-doc-header h1 {
    color: #fff;
}

body.dark-mode .cv-doc-section h2 {
    color: #fff;
    border-bottom-color: #444;
}

body.dark-mode .cv-doc-item h3 {
    color: #fff;
}

body.dark-mode .cv-doc-item p {
    color: #ccc;
}

body.dark-mode .cv-doc-list li {
    color: #ccc;
}


/* ============================================================================
   TYPING SPEED TEST
   ============================================================================ */

.typing-test-interface {
    max-width: 900px;
    margin: 0 auto;
}

.typing-test-header {
    text-align: center;
    margin-bottom: 2rem;
}

.typing-test-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.typing-test-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.typing-test-text-container {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    min-height: 150px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.typing-test-text {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.typing-test-text .char {
    transition: all 0.1s ease;
}

.typing-test-text .char.correct {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.typing-test-text .char.incorrect {
    color: #f44336;
    background: rgba(244, 67, 54, 0.2);
    text-decoration: underline wavy;
}

.typing-test-text .char.current {
    background: var(--primary-color);
    color: white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.typing-test-input-container {
    margin-bottom: 1.5rem;
}

.typing-test-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.typing-test-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.typing-test-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.typing-test-controls {
    text-align: center;
    margin-bottom: 2rem;
}

.typing-test-results {
    background: linear-gradient(135deg, var(--primary-color), #1976d2);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.typing-test-results h3 {
    margin-top: 0;
    font-size: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
}

.share-message {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.share-message p {
    margin: 0;
    font-size: 1.1rem;
}

/* ============================================================================
   REACTION TIME TEST
   ============================================================================ */

.reaction-test-interface {
    max-width: 800px;
    margin: 0 auto;
}

.reaction-test-header {
    text-align: center;
    margin-bottom: 2rem;
}

.reaction-test-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.reaction-test-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.reaction-test-area {
    height: 400px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: 3px solid var(--border-color);
}

.reaction-test-area.waiting {
    background: var(--card-bg);
}

.reaction-test-area.waiting:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.reaction-test-area.ready {
    background: #f44336;
    border-color: #d32f2f;
}

.reaction-test-area.green {
    background: #4caf50;
    border-color: #388e3c;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.reaction-test-area.tooEarly {
    background: #ff9800;
    border-color: #f57c00;
}

.reaction-test-area.result {
    background: linear-gradient(135deg, var(--primary-color), #1976d2);
    border-color: var(--primary-color);
}

.reaction-test-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.reaction-test-area.waiting .reaction-test-content {
    color: var(--text-primary);
}

.reaction-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.reaction-test-content h3 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

.reaction-test-content p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    opacity: 0.9;
}

.reaction-test-controls {
    text-align: center;
    margin-bottom: 2rem;
}

.reaction-test-info {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.reaction-test-info h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.reaction-test-info ul {
    list-style: none;
    padding: 0;
}

.reaction-test-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.reaction-test-info li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.reaction-benchmark {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.reaction-benchmark h5 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.benchmark-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.benchmark-label {
    font-weight: 600;
    color: var(--text-primary);
}

.benchmark-value {
    color: var(--primary-color);
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .typing-test-stats,
    .reaction-test-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .typing-test-text-container {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .reaction-test-area {
        height: 300px;
    }
    
    .reaction-icon {
        font-size: 3rem;
    }
    
    .reaction-test-content h3 {
        font-size: 2rem;
    }
    
    .results-grid,
    .benchmark-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================================
   REGEX TESTER & DEBUGGER
   ============================================================================ */

.regex-tester-interface {
    max-width: 1200px;
    margin: 0 auto;
}

.regex-tester-header {
    text-align: center;
    margin-bottom: 2rem;
}

.regex-tester-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.regex-tester-main {
    display: grid;
    gap: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.section-header h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--primary-color);
}

/* Pattern Section */
.regex-pattern-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.regex-flags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.flag-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.flag-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.flag-checkbox span {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary-color);
}

.flag-checkbox small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.regex-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
}

.regex-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.regex-delimiter {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.regex-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 0.5rem;
}

.regex-input:focus {
    outline: none;
}

.regex-flags-display {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

.regex-error {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    border-radius: 4px;
    color: #f44336;
}

.regex-error i {
    margin-right: 0.5rem;
}

/* Test String Section */
.regex-test-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.regex-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

.regex-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Results Section */
.regex-results-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.match-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.highlighted-text {
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 100px;
}

.regex-match {
    background: rgba(76, 175, 80, 0.3);
    border-bottom: 2px solid #4caf50;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.regex-match:hover {
    background: rgba(76, 175, 80, 0.5);
}

.no-matches {
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    margin: 0;
}

/* Match Details Section */
.regex-matches-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-detail-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    padding: 1rem;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.match-header strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.match-position {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.match-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.match-value,
.match-groups {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-value code,
.group-item code {
    background: rgba(33, 150, 243, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    display: block;
    word-wrap: break-word;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
}

.group-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
}

/* Quick Reference Section */
.regex-quick-reference {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.quick-ref-content {
    margin-top: 1rem;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.pattern-item {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pattern-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pattern-item code {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
}

.pattern-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Cheatsheet */
.regex-cheatsheet {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
}

.regex-cheatsheet h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cheatsheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.cheat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 4px;
}

.cheat-item code {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: bold;
    min-width: 50px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .regex-flags {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pattern-grid,
    .cheatsheet-grid {
        grid-template-columns: 1fr;
    }
    
    .group-item {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ============================================================================
   REVERSE SHELL GENERATOR (Security Analysis Tool)
   ============================================================================ */

.revshell-interface {
    max-width: 1000px;
    margin: 0 auto;
}

.revshell-header {
    text-align: center;
    margin-bottom: 2rem;
}

.revshell-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Security Disclaimer */
.security-disclaimer {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.disclaimer-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.disclaimer-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.disclaimer-content p {
    margin: 0.75rem 0;
    line-height: 1.6;
}

.disclaimer-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.disclaimer-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.disclaimer-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Configuration Section */
.revshell-config {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.config-section h3,
.shell-selector h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.config-section h3 i,
.shell-selector h3 i {
    margin-right: 0.5rem;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.config-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.config-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.config-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.config-item small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Shell Type Selector */
.shell-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.shell-type-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.shell-type-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.shell-type-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.shell-type-btn i {
    font-size: 2rem;
}

.shell-type-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Output Section */
.revshell-output {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.output-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.output-header h3 i {
    margin-right: 0.5rem;
}

.output-content {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.shell-command {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output-info {
    padding: 1rem;
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.output-info p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

.btn.success {
    background: #4caf50;
    border-color: #4caf50;
}

/* Listener Setup */
.listener-setup {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.setup-header h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.setup-header h3 i {
    margin-right: 0.5rem;
}

.setup-content p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.listener-command {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.listener-command pre {
    flex: 1;
    margin: 0;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

.setup-steps h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.setup-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.setup-steps li {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Educational Resources */
.educational-resources {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.resources-header h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.resources-header h3 i {
    margin-right: 0.5rem;
}

.resources-content p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.resources-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.resources-content li {
    margin: 0.75rem 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.resources-content strong {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .security-disclaimer {
        flex-direction: column;
        text-align: center;
    }
    
    .disclaimer-icon {
        font-size: 2.5rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .shell-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .listener-command {
        flex-direction: column;
        align-items: stretch;
    }
}


/* ============================================================================
   FILE SIGNATURE / MAGIC BYTES VIEWER
   ============================================================================ */

.filesig-interface {
    max-width: 1000px;
    margin: 0 auto;
}

.filesig-header {
    text-align: center;
    margin-bottom: 2rem;
}

.filesig-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Upload Area */
.filesig-upload {
    margin-bottom: 2rem;
}

.upload-area {
    background: var(--card-bg);
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(33, 150, 243, 0.05);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-area h3 {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Results Section */
.filesig-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.result-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* File Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

/* Hex Display */
.hex-display {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.hex-header {
    display: grid;
    grid-template-columns: 100px 1fr 200px;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.hex-content {
    max-height: 300px;
    overflow-y: auto;
}

.hex-row {
    display: grid;
    grid-template-columns: 100px 1fr 200px;
    gap: 1rem;
    padding: 0.25rem 0;
    color: var(--text-primary);
}

.hex-offset {
    color: var(--text-secondary);
}

.hex-values {
    letter-spacing: 0.5px;
}

.hex-ascii {
    color: var(--text-secondary);
}

/* Signature Match */
.match-found,
.match-not-found {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.match-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.match-icon.success {
    color: #4caf50;
}

.match-icon.warning {
    color: #ff9800;
}

.match-icon.unknown {
    color: var(--text-secondary);
}

.match-details h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.match-item {
    display: flex;
    gap: 0.5rem;
    color: var(--text-primary);
}

.match-item strong {
    min-width: 150px;
    color: var(--text-secondary);
}

.match-item code {
    background: rgba(33, 150, 243, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Security Assessment */
.assessment-success,
.assessment-info,
.assessment-warning,
.assessment-danger,
.assessment-unknown {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid;
}

.assessment-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
}

.assessment-success i {
    color: #4caf50;
    font-size: 2rem;
}

.assessment-info {
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--primary-color);
}

.assessment-info i {
    color: var(--primary-color);
    font-size: 2rem;
}

.assessment-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
}

.assessment-warning i {
    color: #ff9800;
    font-size: 2rem;
}

.assessment-danger {
    background: rgba(244, 67, 54, 0.1);
    border-color: #f44336;
}

.assessment-danger i {
    color: #f44336;
    font-size: 2rem;
}

.assessment-unknown {
    background: rgba(158, 158, 158, 0.1);
    border-color: #9e9e9e;
}

.assessment-unknown i {
    color: #9e9e9e;
    font-size: 2rem;
}

.assessment-success strong,
.assessment-info strong,
.assessment-warning strong,
.assessment-danger strong,
.assessment-unknown strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.assessment-success p,
.assessment-info p,
.assessment-warning p,
.assessment-danger p,
.assessment-unknown p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Reference Section */
.filesig-reference {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.reference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reference-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sig-category h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sig-item {
    padding: 0.5rem;
    background: var(--bg-primary);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sig-item code {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .hex-header,
    .hex-row {
        grid-template-columns: 80px 1fr 120px;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .match-found,
    .match-not-found {
        flex-direction: column;
        text-align: center;
    }
    
    .match-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .match-item strong {
        min-width: auto;
    }
    
    .signature-grid {
        grid-template-columns: 1fr;
    }
    
    .assessment-success,
    .assessment-info,
    .assessment-warning,
    .assessment-danger,
    .assessment-unknown {
        flex-direction: column;
        text-align: center;
    }
}


/* ============================================================================
   IPv4 ADDRESS CONVERTER / OBFUSCATOR
   ============================================================================ */

.ipobf-interface {
    max-width: 1000px;
    margin: 0 auto;
}

.ipobf-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ipobf-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Educational Notice */
.educational-notice {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.educational-notice i {
    font-size: 2rem;
    flex-shrink: 0;
}

.notice-content strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.notice-content p {
    margin: 0;
    line-height: 1.6;
    opacity: 0.95;
}

/* Input Section */
.ipobf-input-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ipobf-input-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.ip-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ip-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.ip-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.ip-error {
    padding: 0.75rem;
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    border-radius: 4px;
    color: #f44336;
    margin-top: 1rem;
}

.quick-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.example-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.example-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.example-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Results Section */
.ipobf-results {
    display: grid;
    gap: 1.5rem;
}

.result-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.result-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.result-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: #4caf50;
}

.result-value {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.result-value code {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: var(--text-primary);
    word-break: break-all;
}

.binary-code {
    font-size: 1rem !important;
    letter-spacing: 1px;
}

.result-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.result-usage {
    background: rgba(33, 150, 243, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.result-usage strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.result-usage code {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
}

.result-usage span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Info Section */
.ipobf-info {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.info-header h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-section h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.info-section p {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.info-section ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.info-section li {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.info-section strong {
    color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ip-input-group {
        flex-direction: column;
    }
    
    .quick-examples {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .result-value code {
        font-size: 1rem;
    }
    
    .binary-code {
        font-size: 0.85rem !important;
    }
}


/* ============================================================================
   URL & WAF BYPASS ENCODER
   ============================================================================ */

.waf-encoder-interface .security-warning-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.waf-encoder-interface .security-warning-banner i {
    font-size: 2rem;
    flex-shrink: 0;
}

.waf-encoder-interface .waf-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    background: var(--input-bg);
    color: var(--text-primary);
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s;
}

.waf-encoder-interface .waf-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.waf-encoder-interface .encoding-modes {
    margin: 25px 0;
}

.waf-encoder-interface .encoding-modes h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.waf-encoder-interface .mode-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.waf-encoder-interface .mode-btn {
    padding: 12px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.waf-encoder-interface .mode-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.waf-encoder-interface .mode-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.waf-encoder-interface .quick-payloads {
    margin: 25px 0;
}

.waf-encoder-interface .quick-payloads h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.waf-encoder-interface .payload-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.waf-encoder-interface .payload-btn {
    padding: 10px 16px;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.waf-encoder-interface .payload-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.waf-encoder-interface .results-section {
    margin-top: 30px;
}

.waf-encoder-interface .results-section > h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.waf-encoder-interface .result-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.waf-encoder-interface .result-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-primary);
}

.waf-encoder-interface .result-header i {
    color: var(--primary-color);
}

.waf-encoder-interface .copy-result-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.waf-encoder-interface .copy-result-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.waf-encoder-interface .copy-result-btn.copied {
    background: #27ae60;
}

.waf-encoder-interface .result-output {
    background: var(--code-bg);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--code-text);
    word-break: break-all;
    line-height: 1.6;
    border: 1px solid var(--border-color);
}

.waf-encoder-interface .result-info {
    margin-top: 10px;
    color: var(--text-secondary);
}

.waf-encoder-interface .info-section {
    margin-top: 40px;
    padding: 25px;
    background: var(--info-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.waf-encoder-interface .info-section h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.waf-encoder-interface .info-section h4:first-child {
    margin-top: 0;
}

.waf-encoder-interface .info-section ul {
    margin-left: 20px;
    line-height: 1.8;
}

.waf-encoder-interface .info-section li {
    margin-bottom: 8px;
}

.waf-encoder-interface .warning-text {
    background: rgba(255, 107, 107, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
}

.waf-encoder-interface .warning-text i {
    color: #ff6b6b;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .waf-encoder-interface .mode-buttons {
        flex-direction: column;
    }
    
    .waf-encoder-interface .mode-btn {
        width: 100%;
        justify-content: center;
    }
    
    .waf-encoder-interface .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .waf-encoder-interface .copy-result-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   USER AGENT PARSER - Blue Team & Forensics
   ============================================================================ */

.ua-parser-interface {
    max-width: 900px;
    margin: 0 auto;
}

.ua-parser-interface .input-section {
    margin-bottom: 30px;
}

.ua-parser-interface .ua-input-group {
    margin-bottom: 20px;
}

.ua-parser-interface .ua-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.ua-parser-interface .ua-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.ua-parser-interface .ua-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.ua-parser-interface .action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ua-parser-interface .parse-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ua-parser-interface .parse-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.ua-parser-interface .clear-btn {
    padding: 12px 24px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ua-parser-interface .clear-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.ua-parser-interface .examples-section {
    margin-top: 25px;
    padding: 20px;
    background: var(--info-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.ua-parser-interface .examples-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1rem;
}

.ua-parser-interface .example-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ua-parser-interface .example-btn {
    padding: 8px 16px;
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ua-parser-interface .example-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.ua-parser-interface .results-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.ua-parser-interface .results-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ua-parser-interface .bot-alert {
    padding: 15px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ua-parser-interface .bot-alert i {
    color: #ffc107;
    font-size: 1.5rem;
}

.ua-parser-interface .bot-alert-content h4 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.ua-parser-interface .bot-alert-content p {
    margin: 0;
    color: var(--text-secondary);
}

.ua-parser-interface .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.ua-parser-interface .result-card {
    padding: 20px;
    background: var(--secondary-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ua-parser-interface .result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.ua-parser-interface .result-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.ua-parser-interface .result-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.ua-parser-interface .result-card-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.ua-parser-interface .result-item {
    margin-bottom: 12px;
}

.ua-parser-interface .result-item:last-child {
    margin-bottom: 0;
}

.ua-parser-interface .result-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.ua-parser-interface .result-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-word;
}

.ua-parser-interface .result-value.unknown {
    color: var(--text-secondary);
    font-style: italic;
}

.ua-parser-interface .info-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--info-bg);
    border-radius: 12px;
    border-left: 4px solid #17a2b8;
}

.ua-parser-interface .info-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ua-parser-interface .info-section h4 i {
    color: #17a2b8;
}

.ua-parser-interface .info-section ul {
    margin: 10px 0 10px 20px;
    line-height: 1.8;
}

.ua-parser-interface .info-section li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.ua-parser-interface .info-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Dark Mode Specific Styles */
body.dark-mode .ua-parser-interface .example-btn {
    background: var(--secondary-bg);
}

body.dark-mode .ua-parser-interface .example-btn:hover {
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ua-parser-interface .action-buttons {
        flex-direction: column;
    }
    
    .ua-parser-interface .parse-btn,
    .ua-parser-interface .clear-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ua-parser-interface .results-grid {
        grid-template-columns: 1fr;
    }
    
    .ua-parser-interface .example-buttons {
        flex-direction: column;
    }
    
    .ua-parser-interface .example-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   LINUX CHMOD CALCULATOR - Visual File Permissions Generator
   ============================================================================ */

.chmod-calculator-interface {
    max-width: 1000px;
    margin: 0 auto;
}

.chmod-calculator-interface .permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.chmod-calculator-interface .permission-group {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.chmod-calculator-interface .permission-group:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.chmod-calculator-interface .permission-group h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.chmod-calculator-interface .permission-group h3 i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.chmod-calculator-interface .permission-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.chmod-calculator-interface .permission-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.chmod-calculator-interface .permission-checkbox:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.chmod-calculator-interface .permission-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.chmod-calculator-interface .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chmod-calculator-interface .checkbox-label i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.chmod-calculator-interface .checkbox-label strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.chmod-calculator-interface .checkbox-label small {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.chmod-calculator-interface .permission-value {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px;
    background: var(--info-bg);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.chmod-calculator-interface .octal-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.chmod-calculator-interface .symbolic-value {
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    background: var(--code-bg);
    padding: 5px 12px;
    border-radius: 6px;
}

.chmod-calculator-interface .results-section {
    margin-bottom: 40px;
}

.chmod-calculator-interface .results-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chmod-calculator-interface .results-section h3 i {
    color: var(--primary-color);
}

.chmod-calculator-interface .result-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.chmod-calculator-interface .result-card.full-width {
    grid-column: 1 / -1;
}

.chmod-calculator-interface .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.chmod-calculator-interface .result-header h4 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chmod-calculator-interface .result-header h4 i {
    color: var(--primary-color);
}

.chmod-calculator-interface .copy-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chmod-calculator-interface .copy-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.chmod-calculator-interface .copy-btn.copied {
    background: #27ae60;
}

.chmod-calculator-interface .result-output {
    font-size: 1.8rem;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    background: var(--code-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    border: 2px solid var(--border-color);
    margin-bottom: 10px;
}

.chmod-calculator-interface .result-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.chmod-calculator-interface .command-section {
    margin-top: 15px;
}

.chmod-calculator-interface .command-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.chmod-calculator-interface .option-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.chmod-calculator-interface .option-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.chmod-calculator-interface .option-checkbox span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.chmod-calculator-interface .path-input-group {
    margin-bottom: 15px;
}

.chmod-calculator-interface .path-input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.chmod-calculator-interface .path-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.chmod-calculator-interface .path-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.chmod-calculator-interface .command-output {
    font-size: 1.2rem;
}

.chmod-calculator-interface .presets-section {
    margin-bottom: 40px;
}

.chmod-calculator-interface .presets-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chmod-calculator-interface .presets-section h3 i {
    color: var(--primary-color);
}

.chmod-calculator-interface .preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.chmod-calculator-interface .preset-btn {
    padding: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chmod-calculator-interface .preset-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.3);
}

.chmod-calculator-interface .preset-btn strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.chmod-calculator-interface .preset-btn:hover strong {
    color: white;
}

.chmod-calculator-interface .preset-btn small {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.chmod-calculator-interface .preset-btn:hover small {
    color: rgba(255, 255, 255, 0.9);
}

.chmod-calculator-interface .preset-btn span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.chmod-calculator-interface .preset-btn:hover span {
    color: rgba(255, 255, 255, 0.8);
}

.chmod-calculator-interface .info-section {
    background: var(--info-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.chmod-calculator-interface .info-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chmod-calculator-interface .info-section h4 i {
    color: var(--primary-color);
}

.chmod-calculator-interface .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.chmod-calculator-interface .info-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.chmod-calculator-interface .info-card h5 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chmod-calculator-interface .info-card h5 i {
    color: var(--primary-color);
}

.chmod-calculator-interface .info-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chmod-calculator-interface .permission-explanation,
.chmod-calculator-interface .common-examples {
    margin-bottom: 20px;
}

.chmod-calculator-interface .permission-explanation h5,
.chmod-calculator-interface .common-examples h5 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.chmod-calculator-interface .permission-explanation ul,
.chmod-calculator-interface .common-examples ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.8;
}

.chmod-calculator-interface .permission-explanation li,
.chmod-calculator-interface .common-examples li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.chmod-calculator-interface .security-warning {
    background: rgba(255, 107, 107, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.chmod-calculator-interface .security-warning i {
    color: #ff6b6b;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.chmod-calculator-interface .security-warning strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.chmod-calculator-interface .security-warning p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chmod-calculator-interface .permissions-grid {
        grid-template-columns: 1fr;
    }
    
    .chmod-calculator-interface .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chmod-calculator-interface .info-grid {
        grid-template-columns: 1fr;
    }
    
    .chmod-calculator-interface .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chmod-calculator-interface .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .chmod-calculator-interface .command-options {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .chmod-calculator-interface .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .chmod-calculator-interface .result-output {
        font-size: 1.4rem;
        padding: 15px;
    }
    
    .chmod-calculator-interface .command-output {
        font-size: 1rem;
        word-break: break-all;
    }
}

/* ============================================================================
   RELATED TOOLS CROSS-LINKING
   ============================================================================ */

.related-tools-section {
    margin-top: 40px;
    padding: 30px;
    background: var(--info-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.related-tools-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-tools-section h3 i {
    color: var(--primary-color);
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.related-tool-card:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.related-tool-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.related-tool-card:hover i {
    color: white;
}

.related-tool-card h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.related-tool-card:hover h4 {
    color: white;
}

.related-tool-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.related-tool-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}
