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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Contribution Notice Banner */
.contribution-notice-banner {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

.contribution-notice-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: bannerShine 3s linear infinite;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.notice-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.notice-text i {
    font-size: 1.2rem;
}

.notice-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.notice-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notice-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.notice-close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.contribution-notice-banner.hidden {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        margin-bottom: 20px;
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
        margin-bottom: 0;
    }
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    padding: 30px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.logo i {
    font-size: 4rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Main content */
.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 50px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

/* Welcome section */
.welcome-section {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
}

/* Utilities grid */
.utilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.utility-card {
    background: linear-gradient(145deg, #ffffff, #f7fafc);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.utility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.utility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.utility-card:hover::before {
    opacity: 1;
}

.utility-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.utility-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Card header */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.8;
    border-radius: inherit;
}

.icon-wrapper i {
    position: relative;
    z-index: 1;
}

.image-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.pdf-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.qr-icon {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.video-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.text-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.qr-icon {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.color-icon {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.card-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-badge:not(.coming-soon-badge) {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
}

.coming-soon-badge {
    background: linear-gradient(45deg, #ed8936, #dd6b20);
    color: white;
}

/* Card content */
.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.card-content p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.feature-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Card footer */
.card-footer {
    margin-top: auto;
}

.use-tool-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.use-tool-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.use-tool-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

/* Stats section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Open Source & Contribution Section */
.opensource-section {
    margin: 60px 0;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contribution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.opensource-card,
.guidelines-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.opensource-card:hover,
.guidelines-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-title h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.github-btn:hover {
    background: linear-gradient(135deg, #334155, #475569);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.priority-section {
    background: linear-gradient(135deg, #fef3e7, #fed7aa);
    border: 2px solid #fdba74;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.priority-section h4 {
    color: #92400e;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.priority-section p {
    color: #a16207;
    margin: 0;
    line-height: 1.6;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.guideline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.guideline-item i {
    color: #667eea;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.guideline-item strong {
    display: block;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 2px;
}

.guideline-item span {
    color: #64748b;
    font-size: 0.9rem;
}

.contribution-areas {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.contribution-areas h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 35px;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.area-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.area-card.priority {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.area-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin: 0 auto 20px;
}

.area-card.priority .area-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.area-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.area-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
}

.area-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.area-badge.high {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
    border: 1px solid #f87171;
}

.area-badge.medium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    border: 1px solid #f59e0b;
}

.area-badge.low {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
    border: 1px solid #22c55e;
}

/* Stats section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff, #f7fafc);
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.stat-info p {
    color: #718096;
    font-weight: 500;
}

/* Footer */
.footer {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    color: white;
    backdrop-filter: blur(20px);
}

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

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    opacity: 0.9;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.footer-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #feca57;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-stack span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

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

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-content {
        padding: 30px 25px;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .utilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Open Source Section Mobile */
    .opensource-section {
        padding: 0 10px;
        margin: 40px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .section-header p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .contribution-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .opensource-card,
    .guidelines-card {
        padding: 25px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .guidelines-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .guideline-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contribution-areas {
        padding: 25px;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tech-stack {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    /* Mobile optimization for open source section */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .opensource-card,
    .guidelines-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .card-title h3 {
        font-size: 1.2rem;
    }
    
    .github-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .priority-section {
        padding: 20px;
    }
    
    .priority-section h4 {
        font-size: 1.1rem;
    }
    
    .contribution-areas {
        padding: 20px;
    }
    
    .contribution-areas h3 {
        font-size: 1.5rem;
    }
    
    .area-card {
        padding: 20px;
    }
    
    .area-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .area-card h4 {
        font-size: 1.1rem;
    }
    
    .area-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}
