/* App Phong Thuy Frontend Styles */

/* Shop Page */
.apt-shop-wrapper {
    padding: 40px 0;
    background: #f5f5f5;
}

.apt-shop-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.apt-shop-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

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

.apt-app-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.apt-app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.apt-app-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.apt-app-header p {
    color: #666;
    margin-bottom: 20px;
}

.apt-pricing-plans h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #444;
    text-align: center;
}

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

.apt-plan-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.apt-plan-item:hover {
    border-color: #4CAF50;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.apt-plan-popular {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transform: scale(1.05);
}

.apt-plan-popular:hover {
    transform: scale(1.08) translateY(-5px);
}

.apt-popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.apt-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.apt-plan-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.apt-plan-price {
    font-size: 28px;
    font-weight: bold;
    color: #4CAF50;
}

.apt-plan-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    flex-grow: 1;
    min-height: 180px;
}

.apt-plan-features li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.apt-plan-action {
    margin-top: auto;
    padding-top: 15px;
}

.apt-buy-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.apt-buy-btn:hover {
    background: #45a049;
}

.apt-buy-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.apt-buy-btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b4299 100%);
}

.apt-user-license {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.apt-user-license h4 {
    margin-top: 0;
    color: #2e7d32;
}

.apt-use-app-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.apt-use-app-btn:hover {
    background: #1976D2;
    color: white;
}

/* User Dashboard */
.apt-dashboard-wrapper {
    padding: 40px 0;
    min-height: 500px;
}

.apt-user-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.apt-dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.apt-dashboard-header h2 {
    margin: 0;
    font-size: 28px;
}

.apt-user-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.apt-user-app-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.apt-user-app-card h3 {
    margin-top: 0;
    color: #333;
}

.apt-usage-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.apt-usage-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s;
}

/* App Usage Page */
.apt-app-page-wrapper {
    padding: 40px 0;
    background: #f9f9f9;
}

.apt-app-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.apt-app-usage-info {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.apt-app-usage-info span {
    color: #666;
}

.apt-app-usage-info strong {
    color: #333;
}

.apt-app-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Datten Congty App */
.apt-datten-congty {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.apt-app-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.apt-form-group {
    margin-bottom: 20px;
}

.apt-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.apt-form-group select,
.apt-form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.apt-radio-group {
    display: flex;
    gap: 20px;
}

.apt-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.apt-radio-group input[type="radio"] {
    margin-right: 5px;
}

.apt-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.apt-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.apt-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.apt-app-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.apt-app-info h3,
.apt-app-info h4 {
    color: #333;
    margin-top: 20px;
}

.apt-app-info h3:first-child {
    margin-top: 0;
}

.apt-app-info ol,
.apt-app-info ul {
    padding-left: 20px;
    color: #555;
}

.apt-app-info li {
    margin-bottom: 8px;
}

/* Results */
#datten-results {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.company-names {
    list-style: none;
    padding: 0;
}

.company-name-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 4px solid #4CAF50;
}

.company-name-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.name-meaning {
    color: #666;
    margin: 5px 0;
}

.name-element {
    color: #4CAF50;
    font-weight: bold;
}

.apt-secondary-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.apt-secondary-btn:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 1024px) {
    .apt-pricing-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .apt-plan-popular {
        transform: scale(1);
    }
    
    .apt-plan-popular:hover {
        transform: translateY(-5px);
    }
    
    .apt-plan-features {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .apt-apps-grid {
        grid-template-columns: 1fr;
    }
    
    .apt-datten-congty {
        grid-template-columns: 1fr;
    }
    
    .apt-app-usage-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .apt-pricing-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}