
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    height: 100vh;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
}

.container{
    width: 90%;
    margin: 0 auto;
    padding: 0 1rem;
}

.notification-container{
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification{
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-width: 20rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease-out;
}

.notification.success{
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.notification.error{
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.notification.info{
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.notification svg{
    margin-right: 0.5rem;
    flex-shrink: 0;
}

@keyframes slideIn{
    from{
        transform: translateX(100%);
        opacity: 0;
    }
    to{
        transform: translateX(0);
        opacity: 1;
    }
}

.hero{
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: white;
    padding: 8rem 0;
    text-align: center;
    border-radius: 15px;
}

.hero-content{
    max-width: 64rem;
    margin: 0 auto;
}

.hero-icon{
    margin-bottom: 1.5rem;
}

.hero h1{
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-description{
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    color: #ddd6fe;
}

.hero-buttons{
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-note{
    font-size: 0.875rem;
    color: #c7d2fe;
    max-width: 32rem;
    margin: 0 auto;
}

.btn{
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.125rem;
}

.btn-primary{
    background-color: white;
    color: #2563eb;
}

.btn-primary:hover{
    background-color: #f3f4f6;
}

.btn-secondary{
    background-color: #16a34a;
    color: white;
}

.btn-secondary:hover{
    background-color: #15803d;
}

.btn-danger-outline{
    background-color: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger-outline:hover{
    background-color: #fef2f2;
}

.btn-full{
    width: 100%;
}

.features{
    padding: 5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card{
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-card.blue{
    background-color: #eff6ff;
}

.feature-card.green{
    background-color: #f0fdf4;
}

.feature-card.purple{
    background-color: #faf5ff;
}

.feature-card svg{
    margin-bottom: 1rem;
}

.feature-card.blue svg{
    color: #2563eb;
}

.feature-card.green svg{
    color: #16a34a;
}

.feature-card.purple svg{
    color: #9333ea;
}

.feature-card h3{
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p{
    color: #6b7280;
    font-size: 0.875rem;
}

.bottom-section{
    padding: 4rem 0;
    text-align: center;
}

.bottom-section h3{
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.offer-card{
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 32rem;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.offer-item{
    color: #16a34a;
    font-weight: 500;
}

.modal{
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active{
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content{
    background: white;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 64rem;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header{
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2{
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-header p{
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.modal-close{
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #6b7280;
}

.modal-close:hover{
    color: #374151;
}

.tabs{
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.tab-button{
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
}

.tab-button:hover:not(:disabled){
    color: #374151;
}

.tab-button.active{
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-button:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-content{
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.tab-panel{
    display: none;
}

.tab-panel.active{
    display: block;
}

.form-card{
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.form-card h3{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group{
    margin-bottom: 1rem;
}

.form-group label{
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.form-group input{
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-group input:focus{
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

.form-group input:disabled{
    background-color: #f9fafb;
    color: #6b7280;
}

.login-info{
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fef3c7;
    border-radius: 0.5rem;
}

.login-info h4{
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.test-accounts{
    font-size: 0.875rem;
    color: #b45309;
}

.test-accounts p{
    margin-bottom: 0.25rem;
}


.user-welcome{
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: #166534;
}

.user-welcome svg{
    margin-right: 0.75rem;
}

.user-data{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.data-item{
    display: flex;
    flex-direction: column;
}

.data-label{
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.data-value{
    padding: 0.5rem 0.75rem;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}


.admin-header{
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 1.5rem;
}

.admin-title{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.user-count{
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
}

.users-table{
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.users-table th,
.users-table td{
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.users-table th{
    background-color: #f9fafb;
    font-weight: 500;
    color: #374151;
}

.user-info{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar{
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-badge{
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.delete-btn{
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.delete-btn:hover{
    background-color: #fef2f2;
}

@media (max-width: 768px){
    .hero{
        padding: 4rem 0;
    }
    
    .hero h1{
        font-size: 2rem;
    }
    
    .hero-description{
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons{
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn{
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        width: 100%;
        max-width: 280px;
    }
    
    .features{
        grid-template-columns: 1fr;
        padding: 3rem 0;
    }
    
    .form-row{
        grid-template-columns: 1fr;
    }
    
    .modal{
        padding: 1rem;
    }
    
    .modal-content{
        width: 100%;
        margin: 0;
        border-radius: 0.5rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header{
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modal-header > div{
        flex: 1;
        min-width: 200px;
    }
    
    .tabs{
        flex-wrap: wrap;
    }
    
    .tab-button{
        font-size: 0.875rem;
        padding: 0.75rem 0.5rem;
        min-width: 0;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .tab-content{
        padding: 1rem;
    }
    
    .form-card{
        padding: 1rem;
        border: none;
        background: transparent;
    }
    
    .form-group{
        margin-bottom: 1rem;
    }
    
    .form-group input{
        padding: 1rem 0.75rem;
        font-size: 1rem;
    }
    
    .user-data{
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .users-table{
        font-size: 0.75rem;
    }
    
    .users-table th,
    .users-table td{
        padding: 0.5rem 0.25rem;
    }
    
    .user-info{
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .user-avatar{
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .admin-header{
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .admin-title{
        font-size: 1rem;
        flex-wrap: wrap;
    }
    
    .login-info{
        padding: 0.75rem;
    }
    
    .test-accounts{
        font-size: 0.75rem;
    }
}

@media (max-width: 480px){
    .container{
        width: 95%;
        padding: 0 0.5rem;
    }
    
    .hero{
        padding: 3rem 0;
    }
    
    .hero h1{
        font-size: 1.75rem;
    }
    
    .hero-description{
        font-size: 0.9rem;
    }
    
    .modal{
        padding: 0.5rem;
    }
    
    .modal-content{
        border-radius: 0.25rem;
        max-height: calc(100vh - 1rem);
    }
    
    .modal-header{
        padding: 0.75rem;
    }
    
    .modal-header h2{
        font-size: 1.125rem;
    }
    
    .tabs{
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button{
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
        min-width: 80px;
        flex: none;
    }
    
    .tab-content{
        padding: 0.75rem;
    }
    
    .form-card{
        padding: 0.75rem;
    }
    
    .form-card h3{
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .btn{
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .users-table{
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .users-table thead,
    .users-table tbody,
    .users-table tr{
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .users-table th:nth-child(1),
    .users-table td:nth-child(1){
        width: 30%;
    }
    
    .users-table th:nth-child(2),
    .users-table td:nth-child(2),
    .users-table th:nth-child(3),
    .users-table td:nth-child(3),
    .users-table th:nth-child(4),
    .users-table td:nth-child(4){
        width: 12%;
    }
    
    .users-table th:nth-child(5),
    .users-table td:nth-child(5){
        width: 15%;
    }
    
    .users-table th:nth-child(6),
    .users-table td:nth-child(6){
        width: 15%;
    }
    
    .users-table th:nth-child(7),
    .users-table td:nth-child(7){
        width: 6%;
    }
}

@media (hover: none) and (pointer: coarse){
    .btn{
        min-height: 44px;
    }
    
    .tab-button{
        min-height: 44px;
    }
    
    .modal-close{
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .delete-btn{
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }
}
