/* DmApp Mini Programs Styles */

.mini-programs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-programs-modal.active {
    opacity: 1;
}

.mini-programs-container {
    width: 90vw;
    max-width: 800px;
    max-height: 90vh;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FFF0 50%, #FFFFFF 100%);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.3);
    animation: slideUpScale 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mini-programs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
}

.mini-programs-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.mini-programs-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FF0000;
}

.mini-programs-close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.mini-programs-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.mini-programs-body::-webkit-scrollbar {
    width: 8px;
}

.mini-programs-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00FF00, #00CC00);
    border-radius: 10px;
}

/* Search */
.mini-programs-search {
    margin-bottom: 25px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #00FF00;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
}

/* Programs Section */
.programs-section {
    margin-bottom: 30px;
}

.programs-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
}

.category-section {
    margin-bottom: 25px;
}

.category-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.mini-program-card {
    padding: 20px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mini-program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.program-name {
    font-weight: 600;
    font-size: 14px;
}

.program-description {
    font-size: 12px;
    color: #666;
}

/* Program Window */
.program-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-window.active {
    opacity: 1;
}

.program-window-container {
    width: 90vw;
    max-width: 600px;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUpScale 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.program-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: white;
}

.program-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.program-icon-small {
    font-size: 24px;
}

.program-window-header button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-window-header button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.program-window-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Booking Program */
.booking-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.booking-category {
    padding: 20px;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-category:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-3px);
}

.booking-category span:first-child {
    font-size: 32px;
}

.booking-category span:last-child {
    font-weight: 600;
}

.booking-form {
    background: rgba(0, 0, 0, 0.02);
    padding: 20px;
    border-radius: 12px;
}

.booking-form h4 {
    margin: 0 0 15px 0;
}

.program-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
}

.program-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.program-submit-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Games */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.game-card {
    padding: 25px;
    background: rgba(255, 87, 34, 0.1);
    border: 2px solid rgba(255, 87, 34, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    background: rgba(255, 87, 34, 0.2);
    transform: scale(1.05);
}

.game-icon {
    font-size: 48px;
}

.game-name {
    font-weight: 600;
    text-align: center;
}

/* Calculator */
.calculator-window {
    max-width: 350px;
}

.calculator {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
}

.calc-display {
    background: #2a2a2a;
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-size: 32px;
    text-align: right;
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calc-buttons button {
    padding: 20px;
    background: #3a3a3a;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-buttons button:hover {
    background: #4a4a4a;
    transform: scale(1.05);
}

.calc-buttons button:active {
    transform: scale(0.95);
}

.calc-equal {
    background: #2196F3 !important;
}

.calc-equal:hover {
    background: #1976D2 !important;
}

/* Notification */
.mini-program-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10003;
    animation: slideInRight 0.4s ease-out;
    font-weight: 600;
}

.mini-program-notification.success {
    background: linear-gradient(135deg, #E6FFE6, #CCFFCC);
    border-left: 5px solid #00FF00;
}

.mini-program-notification.info {
    background: linear-gradient(135deg, #E6F3FF, #CCE6FF);
    border-left: 5px solid #0088FF;
}

.mini-program-notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideUpScale {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-categories,
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-program-card {
        padding: 15px;
    }
    
    .program-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-buttons button {
        padding: 15px;
        font-size: 16px;
    }
    
    .calc-display {
        font-size: 24px;
    }
}
