/* Global Styles */
:root {
    --primary-color: #ff0000;
    --secondary-color: #282828;
    --text-color: #ffffff;
    --background-color: #1a1a1a;
    --card-background: #2d2d2d;
    --hover-color: #ff4444;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    background-color: var(--secondary-color);
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 30px;
}

.logo i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 10px;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: var(--primary-color);
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

/* Main Content Styles */
.content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
}

header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    text-align: center;
    margin: -20px -20px 30px -20px;
}

.header-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header-content p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Tool Cards Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.tool-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.tool-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tool-card h3 {
    margin: 10px 0;
    font-size: 1.5em;
}

.tool-card p {
    color: #ccc;
    margin-bottom: 20px;
}

.tool-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.tool-btn:hover {
    background-color: var(--hover-color);
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.faq-item {
    background-color: var(--card-background);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
}

.faq-question {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.faq-answer {
    color: #ccc;
    line-height: 1.6;
}

/* Footer Styles */
.page-footer {
    background-color: var(--secondary-color);
    padding: 40px 20px 20px;
    margin: 40px -20px -20px -20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-links a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Tool Container Styles */
.tool-container {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
}

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

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: var(--text-color);
    margin-bottom: 15px;
}

textarea.input-field {
    min-height: 100px;
    resize: vertical;
}

.result-area {
    background-color: #333;
    border-radius: 5px;
    padding: 20px;
    min-height: 100px;
    white-space: pre-wrap;
}

/* Tool Page Header */
.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.tool-header p {
    color: #ccc;
    font-size: 1.1em;
}

/* Tool Content Section */
.tool-content-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
}

.tool-content-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tool-content-section ul {
    list-style-type: none;
    padding: 0;
}

.tool-content-section ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.tool-content-section ul li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Admin Login Button Styles */
.admin-login {
    position: fixed;
    top: 20px;
    left: 280px; 
    z-index: 1000;
    animation: slideInLeft 0.5s ease-out;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.admin-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.2);
    background-position: 100% 100%;
}

.admin-btn i {
    font-size: 18px;
    animation: rotateIcon 6s infinite;
}

/* Admin Button Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 4px 6px rgba(255, 0, 0, 0.1);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 4px 6px rgba(255, 0, 0, 0.1);
    }
}

@keyframes rotateIcon {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .content {
        margin-left: 0;
    }

    .sidebar-footer {
        position: relative;
        bottom: 0;
        padding: 20px 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .admin-login {
        top: 10px;
        left: 80px; 
    }
    
    .admin-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .admin-btn i {
        font-size: 16px;
    }
}

/* When sidebar is collapsed */
body.sidebar-collapsed .admin-login {
    left: 80px;
}
