/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    min-height: 100vh;
}

.dashboard-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* New Button Styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10rem;
    transition: all 0.02s;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    z-index: 0;
    box-shadow: 0 0px 7px -5px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.button:hover {
    background: #4a4e91;
    color: #ffffff;
}

.button:active {
    transform: scale(0.97);
}

.hoverEffect {
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hoverEffect div {
    background: linear-gradient(
        90deg,
        #4285f4 0%,
        #34a853 49%,
        #fbbc05 100%
    );
    border-radius: 40rem;
    width: 10rem;
    height: 10rem;
    transition: 0.4s;
    filter: blur(20px);
    animation: effect infinite 3s linear;
    opacity: 0.5;
}

.button:hover .hoverEffect div {
    width: 8rem;
    height: 8rem;
}

@keyframes effect {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.beautiful-button {
    position: relative;
    display: inline-block;
    background: linear-gradient(to bottom, #4285f4, #34a853);
    color: white;
    font-family: "Segoe UI", sans-serif;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 30px;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: button-shimmer 2s infinite;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.beautiful-button:hover {
    background: linear-gradient(to bottom, #34a853, #fbbc05);
    animation: button-particles 1s ease-in-out infinite;
    transform: translateY(-2px);
}

.beautiful-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes button-shimmer {
    0% {
        background-position: left top;
    }
    100% {
        background-position: right bottom;
    }
}

@keyframes button-particles {
    0% {
        background-position: left top;
    }
    100% {
        background-position: right bottom;
    }
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    padding-bottom: 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.logout-btn {
    padding: 0.5rem 1.2rem;
    background-color: white;
    color: #4285f4;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background-color: #f1f1f1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    text-align: center;
    padding: 2rem 5%;
}

.header-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.header-content p {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 5%;
}

section {
    margin-bottom: 3rem;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
}

/* Tools Section */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.tool-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    width: 280px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tool-card i {
    font-size: 2.5rem;
    color: #4285f4;
    margin-bottom: 1.5rem;
}

.tool-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #333;
}

.tool-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Info Section */
.info-section {
    background-color: #f8f9fa;
    padding: 2rem 0;
    border-radius: 10px;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.info-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    width: 250px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-card i {
    font-size: 2rem;
    color: #4285f4;
    margin-bottom: 1rem;
}

.info-card h4 {
    margin-bottom: 0.8rem;
    color: #333;
    font-size: 1.1rem;
}

.info-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #212529;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Touch-specific styles for mobile optimization */
.touch-device .nav-links a {
    padding: 0.8rem 1.5rem;  /* Larger touch targets */
}

.touch-device .tool-card {
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
}

.touch-active {
    transform: scale(0.97) !important;
    opacity: 0.8;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out !important;
}

/* Fast tap highlighting for mobile */
.tool-card, .nav-links a, .info-card {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content p {
        font-size: 2.3rem;
    }
    
    .tool-card {
        width: 250px;
    }
    
    .info-card {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .header-content p {
        font-size: 2rem;
    }
    
    main {
        padding: 2rem 3%;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .tools-grid, .info-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .tool-card, .info-card {
        width: 100%;
        max-width: 320px;
    }
    
    section {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links a {
        margin: 0 0.75rem;
        font-size: 0.9rem;
    }
    
    .header-content p {
        font-size: 1.8rem;
    }
    
    main {
        padding: 1.5rem 3%;
    }
    
    .tool-card, .info-card {
        padding: 1.5rem;
    }
    
    .tool-card i, .info-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .tool-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .nav-links a {
        margin: 0 0.5rem;
        font-size: 0.85rem;
    }
    
    .header-content p {
        font-size: 1.5rem;
    }
    
    .tool-card h3, .info-card h4 {
        font-size: 1.1rem;
    }
}