/* Utilities Page Specific Styles */

.utilities-layout {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 24px;
    min-height: calc(100vh - 200px);
    background: #f8fafc;
}

/* Dark Theme Styles */
[data-theme="dark"] .utilities-layout {
    background: #0e1116;
}

.utilities-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.utilities-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.utilities-sidebar-right {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dark Theme - Sidebar and Content Areas */
[data-theme="dark"] .utilities-sidebar,
[data-theme="dark"] .utilities-content,
[data-theme="dark"] .utilities-sidebar-right {
    background: #141922;
    border: 1px solid #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.utility-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.utility-menu li {
    margin-bottom: 8px;
}

.utility-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    transition: all 0.2s;
    font-weight: 600;
    text-decoration: none;
}

.utility-menu a:hover,
.utility-menu a.active {
    background: #ff8800;
    color: #ffffff;
}

/* Dark Theme - Utility Menu */
[data-theme="dark"] .utility-menu a {
    background: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .utility-menu a:hover,
[data-theme="dark"] .utility-menu a.active {
    background: #ff8800;
    color: #ffffff;
}

.utility-menu a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.utility-content {
    display: none;
}

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

.utility-content h2 {
    margin: 0 0 16px;
    font-size: 24px;
    color: #1f2937;
}

.utility-content p {
    margin: 0 0 16px;
    color: #6b7280;
    line-height: 1.6;
}

/* Dark Theme - Content Text */
[data-theme="dark"] .utility-content h2 {
    color: #e5e7eb;
}

[data-theme="dark"] .utility-content p {
    color: #94a3b8;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

/* Dark Theme - Tool Cards */
[data-theme="dark"] .tool-card {
    background: #141922;
    border: 1px solid #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tool-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.tool-card i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #ff8800;
}

.tool-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1f2937;
}

.tool-card p {
    margin: 0 0 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* Dark Theme - Tool Card Text */
[data-theme="dark"] .tool-card h3 {
    color: #e5e7eb;
}

[data-theme="dark"] .tool-card p {
    color: #94a3b8;
}

.tool-card .btn {
    background: #ff8800;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-card .btn:hover {
    background: #e67e00;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
}

.stat-label {
    color: #6b7280;
    font-size: 14px;
}

.stat-value {
    color: #ff8800;
    font-weight: 600;
    font-size: 14px;
}

.ad-space {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 20px 0;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
    color: #1f2937;
}

/* Dark Theme - Sidebar Sections */
[data-theme="dark"] .sidebar-section h3 {
    color: #e5e7eb;
}

.sidebar-section h3 i {
    margin-right: 8px;
    color: #ff8800;
}

.tip-box {
    background: #f3f4f6;
    padding: 16px;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
}

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

.useful-links a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.useful-links a:hover {
    background: #e5e7eb;
}

.useful-links a i {
    margin-right: 8px;
    color: #ff8800;
}

/* Dark Theme - Stats and Links */
[data-theme="dark"] .stat-item {
    background: #374151;
}

[data-theme="dark"] .stat-label {
    color: #94a3b8;
}

[data-theme="dark"] .stat-value {
    color: #e5e7eb;
}

[data-theme="dark"] .useful-links a {
    background: #374151;
    color: #e5e7eb;
}

[data-theme="dark"] .useful-links a:hover {
    background: #4b5563;
}

/* Responsive */
@media (max-width: 992px) {
    .utilities-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .utilities-sidebar,
    .utilities-sidebar-right {
        order: 2;
    }
    
    .utilities-content {
        order: 1;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}
