.gdrive-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gdrive-login-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gdrive-login-box h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.gdrive-login-box input[type="password"] {
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin: 10px 0;
    transition: border-color 0.3s;
}

.gdrive-login-box input[type="password"]:focus {
    border-color: #4285f4;
    outline: none;
}

.gdrive-login-box button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gdrive-login-box button:hover {
    background: #3367d6;
}

.gdrive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.gdrive-header h3 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

.gdrive-logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.gdrive-logout-btn:hover {
    background: #c82333;
}

.gdrive-files-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.gdrive-file-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gdrive-file-item:hover {
    border-color: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.gdrive-file-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.gdrive-file-info {
    flex-grow: 1;
}

.gdrive-file-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.gdrive-file-type {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    background: #f1f3f4;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.gdrive-file-desc {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.gdrive-file-actions {
    flex-shrink: 0;
}

.gdrive-download-btn {
    background: #34a853;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    display: inline-block;
}

.gdrive-download-btn:hover {
    background: #2d7f47;
    text-decoration: none;
    color: white;
}

#gdrive-login-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#gdrive-login-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#gdrive-login-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsywność */
@media (max-width: 768px) {
    .gdrive-container {
        padding: 15px;
        margin: 10px;
    }
    
    .gdrive-files-grid {
        grid-template-columns: 1fr;
    }
    
    .gdrive-file-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .gdrive-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}