*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}
html,body{
    width:100%;height:100%;
    background-color:white;
    overflow:hidden;
}
#clock{
    position:relative;
    width:100%;
    height:100%;
}
.label{
    display:inline-block;
    color:#4d4d4d;
    text-align:center;
    padding:0 5px;
    font-size:16px;
    transition:left 1s,top 1s;
    transform-origin:0% 0%;
}

/* AWS监控弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    font-family: Arial, sans-serif;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    cursor: move;
    user-select: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    margin: -20px -20px 15px -20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #f0f0f0;
}

.modal-body {
    margin-top: 15px;
    padding: 10px;
}

.service-item {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.usage-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 5px 0;
    position: relative;
}

.usage-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 0.5s;
}

.usage-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 5px;
}

.usage-text {
    color: #666;
}

.usage-numbers {
    color: #333;
    font-weight: bold;
}

.status-grid {
    display: grid;
    gap: 15px;
}

.timestamp {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-bottom: 15px;
}

.error {
    color: #d32f2f;
    text-align: center;
    padding: 10px;
}
