/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Glass Container */
.glass-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    width: 100%;
    max-width: 800px;
    padding: 40px;
    margin: 20px auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 1.1rem;
}

.tip {
    font-size: 0.9rem;
    color: #888;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

/* Upload Section */
.upload-section {
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-section:hover {
    border-color: #007AFF !important;
    background: rgba(0, 122, 255, 0.05) !important;
}

.upload-btn {
    transition: transform 0.2s;
}

.upload-btn:active {
    transform: scale(0.98);
}

/* Form */
.input-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #0056b3;
}

.submit-btn:active {
    transform: scale(0.98);
}

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

/* History Section */
.history-section {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.history-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.history-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s;
}

.history-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.app-info {
    flex: 1;
}

.app-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.bundle-id {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.app-meta {
    display: inline-block;
    font-size: 0.8rem;
    color: #999;
    margin-right: 15px;
    margin-bottom: 3px;
}

.created-time {
    font-size: 0.8rem;
    color: #999;
}

.actions {
    display: flex;
    gap: 10px;
}

.install-btn, .copy-btn, .qr-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}

.install-btn {
    background: #007AFF;
    color: white;
}

.install-btn:hover {
    background: #0056b3;
}

.copy-btn {
    background: #f0f2f5;
    color: #333;
}

.copy-btn:hover {
    background: #e4e6eb;
}

/* Responsive */
@media (max-width: 600px) {
    .glass-container {
        padding: 20px;
        margin: 10px;
        width: auto;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions {
        width: 100%;
        margin-top: 15px;
        justify-content: space-between;
    }
    
    .actions button, .actions a {
        flex: 1;
        text-align: center;
    }
}
